{ "question": "Roger goes to the store to buy some coffee. The normal brand of coffee he buys cost $5 per pound. He had to buy a more expensive brand that cost 20% more since his favorite brand was sold out. He decides to buy a week's worth of coffee and he uses 1 pound of coffee per day. He also decided to buy himself a donut for $2. How much did everything cost?", "answer": "The coffee he bought was 5*.2=$<<5*.2=1>>1 more expensive per pound than what he normally buys\nSo it cost 5+1=$<<5+1=6>>6 per pound\nHe goes through 1*7=<<1*7=7>>7 pounds of coffee a week\nSo he paid 6*7=$<<6*7=42>>42 on coffee\nThat means his total bill was 42+2=$<<42+2=44>>44\n#### 44", "id_orig": 661, "id_shuffled": 42, "question_annotated": "{name,Roger} goes to the store to buy some {item,coffee}. The normal brand of {item,coffee} he buys costs {cur,$}{price,5} per {unit,pound}. He had to buy a more expensive brand that costs {percent,20}% more since his favorite brand was sold out. He decides to buy a week's worth of {item,coffee} and he uses {usage,1} {unit,pound} of {item,coffee} per day. He also decided to buy himself a {extra_item,donut} for {cur,$}{extra_price,2}. How much did everything cost?\n\n#init:\n- name = sample(names_male)\n- item = sample(['tea', 'sugar', 'flour', 'rice'])\n- cur = sample(currencies_sym)\n- unit = sample(['kilogram', 'kg'])\n- extra_item = sample(['cookie', 'muffin', 'bagel'])\n- $price = range(3, 25)\n- $percent = range(10, 50, 5)\n- $usage = range(1, 3)\n- $extra_price = range(1, 5)\n\n#conditions:\n- is_int(price * percent / 100)\n\n#answer: (price + price * percent / 100) * 7 * usage + extra_price", "answer_annotated": "The {item} he bought was {price}*{percent/100}={price*percent//100} more expensive per {unit} than what he normally buys\nSo it cost {price}+{price*percent//100}={price+price*percent//100} per {unit}\nHe goes through {usage}*7=<<{usage}*7={usage*7}>>{usage*7} {unit}s of {item} a week\nSo he paid {price+price*percent/100}*{usage*7}=<<{price+price*percent/100}*{usage*7}={int((price+price*percent/100)*usage*7)}>>{int((price+price*percent/100)*usage*7)} on {item}\nThat means his total bill was {int((price+price*percent/100)*usage*7)}+{extra_price}={int((price+price*percent/100)*usage*7)+extra_price}\n#### {int((price+price*percent/100)*usage*7)+extra_price}" }