{ "question": "John is raising money for a school trip. He has applied for help from the school, which has decided to cover half the cost of the trip. How much money is John missing if he has $50 and the trip costs $300?", "answer": "John's school has decided to pay 300 / 2 = $<<300/2=150>>150 for his trip.\nIn total John has covered 150 + 50 = $<<150+50=200>>200 for his trip\nTherefore, John needs 300 - 200 = $<<300-200=100>>100 more for the trip.\n#### 100", "id_orig": 788, "id_shuffled": 35, "question_annotated": "{name,John} is raising money for a {event,school trip}. He has applied for help from the {organization,school}, which has decided to cover {fraction,half} of the cost of the {event,trip}. How much money is {name,John} missing if he has {cur,$}{current,50} and the {event,trip} costs {cur,$}{total,300}?\n\n#init:\n- name = sample(names_male)\n- event = sample([\"field trip\", \"sports tournament\", \"conference\", \"music festival\", \"science fair\"])\n- cur = sample(currencies_sym)\n- organization = sample([\"school\", \"community center\", \"local charity\", \"youth club\", \"parent association\"])\n- $fraction = sample(fractions)\n- $current = range(10, 200, 5)\n- $total = range(200, 1000, 10)\n\n#conditions:\n- total > current\n- is_int(total * Fraction(fraction))\n- is_int(total - (total * Fraction(fraction) + current))\n\n#answer: total - (total * Fraction(fraction) + current)", "answer_annotated": "{name}'s {organization} has decided to pay {total} * {fraction} = {cur}<<{total}*{Fraction(fraction)}={total*Fraction(fraction)}>>{total*Fraction(fraction)} for his {event}.\nIn total {name} has covered {total*Fraction(fraction)} + {current} = {cur}<<{total*Fraction(fraction)}+{current}={total*Fraction(fraction)+current}>>{total*Fraction(fraction)+current} for his {event}\nTherefore, {name} needs {total} - {total*Fraction(fraction)+current} = {cur}<<{total}-{total*Fraction(fraction)+current}={total-(total*Fraction(fraction)+current)}>>{total-(total*Fraction(fraction)+current)} more for the {event}.\n#### {total-(total*Fraction(fraction)+current)}" }