reasoning-gym/reasoning_gym/data/gsm_data/p1/0080.json
2025-01-30 23:51:31 -06:00

8 lines
No EOL
3.1 KiB
JSON

{
"question": "The vending machines sell chips for 40 cents and candy bars for 75 cents. George spent $5 and got 3 bags of chips and had 1% of his money left. How many candy bars did he buy?",
"answer": "George got $.05 in change because 5 x .01 = <<5*.01=.05>>.05\nGeorge spent $4.95 because 5 - .05 = <<5-.05=4.95>>4.95\nGeorge spent $1.2 on chips because 3 x .4 = <<3*.4=1.2>>1.2\nGeorge spent 3.75 on candy bars because 4.95 - 1.2 = <<4.95-1.2=3.75>>3.75\nGeorge bought 5 candy bars because 3.75 / .75 = <<5=5>>5\n#### 5",
"id_orig": 434,
"id_shuffled": 80,
"question_annotated": "The vending machine sells {item1,chips} for {price1,40} cents, {item2,candy bars} for {price2,75} cents, and {item3, gum} for {cur,$}{price3,2}. {name,George} spent {cur,$}{total,5} and got {n1,3} bags of {item1,chips}, {n3,2} packs of {item3,gum}, and had {p,1}% of his money left in change. How many {item2,candy bars} did he buy?\n\n#init:\n- name = sample(names_male)\n- item1, item2, item3 = sample(['pretzels', 'popcorn packs', 'gum', 'cookies', 'crackers'], 3)\n- cur = sample( [\"$\", \"€\", \"₣\", \"₤\"])\n- $price1 = range(25, 100, 5)\n- $price2 = range(50, 150, 5)\n- $price3 = range(3, 16)\n- $total = range(50, 150, 10)\n- $n1 = range(2, 10)\n- $n3 = range(2, 10)\n- $p = range(1, 10)\n\n#conditions:\n- price2 > price1\n- is_int((total) * p /100)\n- is_int(((total) * (100 - p) / 100 - (n1 * price1 / 100)- (n3*price3)) / (price2 / 100))\n- ((total * (100 - p) / 100) - (n1 * price1 / 100) - (n3*price3)) > 0\n- ((total * (100 - p) / 100) - (n1 * price1 / 100) - (n3*price3)) % (price2 / 100) == 0\n\n#answer: int((total * (100 - p) / 100 - n1 * price1 / 100 - (n3*price3)) / (price2 / 100))",
"answer_annotated": "{name} got {cur}{total * p / 100} in change because {total} x {p}/100 = <<{total}*{p}/100={total * p // 100}>>{total * p // 100}.\n{name} spent {cur}{total * (100 - p) // 100} because {total} - {total * p // 100} = <<{total}-{total * p // 100}={total * (100 - p) // 100}>>{total * (100 - p) // 100}.\n{name} spent {cur}{n1 * price1 / 100} on {item1} because {n1} x {price1/100} = <<{n1}*{price1/100}={n1 * price1 / 100}>>{n1 * price1 / 100}.\n{name} spent {cur}{n3 * price3} on {item3} because {n3} x {price3} = <<{n3}*{price3}={n3 * price3}>>{n3 * price3}.\n{name} spent {(total * (100 - p) / 100 - n1 * price1 / 100) - (n3*price3)} on {item2} because {total * (100 - p) / 100} - {n1 * price1 / 100} - {n3 * price3} = <<{total * (100 - p) / 100}-{n1 * price1 / 100}-{n3*price3}={total * (100 - p) / 100 - n1 * price1 / 100 - (n3*price3)}>>{total * (100 - p) / 100 - n1 * price1 / 100 - (n3*price3)}.\n{name} bought {int((total * (100 - p) / 100 - n1 * price1 / 100 - n3 * price3) / (price2 / 100))} {item2} because {total * (100 - p) / 100 - n1 * price1 / 100 - n3 * price3} / {price2/100} = <<{int((total * (100 - p) / 100 - n1 * price1 / 100 - n3 * price3) / (price2 / 100))}={int((total * (100 - p) / 100 - n1 * price1 / 100 - n3*price3) / (price2 / 100))}>>{int((total * (100 - p) / 100 - n1 * price1 / 100 - n3*price3) / (price2 / 100))}.\n#### {int((total * (100 - p) / 100 - n1 * price1 / 100 - n3 * price3) / (price2 / 100))}"
}