at a supermarket , john spent 1 / 5 of his money on fresh fruits and vegetables , 1 / 3 on meat products , and 1 / 10 on bakery products . if he spent the remaining $ 11 on candy , how much did john spend at the supermarket ?
"let ' s let t = total number of dollars spent at the supermarket . with this variable we can set up an equation and determine t . we are given that john spent 1 / 5 of his money on fresh fruits and vegetables , or ( 1 / 5 ) t , 1 / 3 on meat products , or ( 1 / 3 ) t , and 1 / 10 on bakery products , or ( 1 / 10 ) t . we are also given that he spent the remaining $ 11 on candy . since we know where all his money was allocated , we can sum these values together and set the sum to t . so we have : ( 1 / 5 ) t + ( 1 / 3 ) t + ( 1 / 10 ) t + 11 = t to get rid of the fractions we can multiply the entire equation by 30 , and we obtain : 6 t + 10 t + 3 t + 330 = 30 t 19 t + 330 = 30 t 330 = 11 t t = 30 john spent $ 90 at the supermarket . answer : b"
divide(11, subtract(1, add(add(divide(1, 10), divide(1, 3)), divide(1, 5))))