{ "question": "John collects garbage from 3 different apartment complexes. The first two have 200 apartments each and the last one is 60% bigger than the other two combined. He collects garbage 3 times a week from each place and he gets paid $.40 per collection for each apartment. How much money does he make in a week?", "answer": "The first two complexes have 200+200=<<200+200=400>>400 apartments\nThe third one has 400*.6=<<400*.6=240>>240 more apartments than those 2 combined\nSo in total, it has 400+240=<<400+240=640>>640 apartments\nSo he goes to 640+400=<<640+400=1040>>1040 apartments each time\nThat means he visits 1040*3=<<1040*3=3120>>3120 apartments every week\nSo he makes 3120*$0.4=$<<3120*0.4=1248>>1248 every week\n#### 1248", "id_orig": 1165, "id_shuffled": 49, "question_annotated": "{name,John} collects garbage from {n,3} different apartment complexes. The first {n_first,2} have {a,200} apartments each and the last one is {p,60}% bigger than the other {n_first,2} combined. However, this week, {vacant,5} apartments from each of the first {n_first,2} complexes were vacant and did not require collection service. {name,John} collects garbage {f,3} times a week from each place and he gets paid {cur,$}{r,0.40} per collection for each apartment. He also earns an additional 10% in tips. How much money does he make in a week?\n\n#init:\n- name = sample(names_male)\n- cur = sample(currencies_sym)\n- $n = range(3, 8)\n- $n_first = range(2, 7)\n- $a = range(100, 500, 50)\n- $p = range(20, 81, 5)\n- $f = range(2, 6)\n- $r = [0.25, 0.30, 0.35, 0.40, 0.45, 0.50]\n- $vacant = range(5, 11)\n\n#conditions:\n- n_first == n-1\n- vacant < a\n- is_int((n-1)*a*p/100)\n- is_int(((n-1)*(a-vacant) + (n-1)*a + (n-1)*a*p/100) * f * r * 1.1)\n- int(((n-1)*(a-vacant) + (n-1)*a + (n-1)*a*p/100) * f * r * 1.1) < 2000\n\n#answer: int(((n-1)*(a-vacant) + (n-1)*a + (n-1)*a*p/100) * f * r * 1.1)", "answer_annotated": "The first {n_first} complexes have {n_first}*{a}={n_first*a} apartments. Since {vacant} from each complex is vacant, we reduce {n_first*a} by {vacant}*{n_first} = {n_first*(a-vacant)}. \nThe {n}-th one has {n_first*a}*{p/100}=<<{n_first*a}*{p/100}={(n-1)*a*p/100}>>{(n-1)*a*p/100} more apartments than those {n_first} combined: {(n-1) * a} + {(n-1)*a*p/100} = {int((n-1)*a*(1+p/100))}.\nThat means he visits {((n-1)*(a-vacant)+(n-1)*a*(1+p/100))}*{f}={((n-1)*(a-vacant)+(n-1)*a*(1+p/100))* f} apartments every week\nSo he makes {((n-1)*(a-vacant)+(n-1)*a*(1+p/100))* f}* {cur}{r} = {cur}{((n-1)*(a-vacant)+(n-1)*a*(1+p/100))* f * r} every week. We should also include the 10% tip which comes to total of {int(((n-1)*(a-vacant) + (n-1)*a + (n-1)*a*p/100) * f * r * 1.1)}.\n\n#### {int(((n-1)*(a-vacant) + (n-1)*a + (n-1)*a*p/100) * f * r * 1.1)}" }