mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-28 17:29:39 +00:00
8 lines
No EOL
2.5 KiB
JSON
8 lines
No EOL
2.5 KiB
JSON
{
|
|
"question": "Martha is knitting winter wear for her 3 grandchildren. They're triplets, so they're all the same size. She wants to make a hat, scarf, sweater, mittens, and socks for each of them. It takes 2 skeins of wool to make a hat, 4 for a scarf, 12 for a sweater, 1 for a pair of mittens, and 2 for a pair of socks. How many skeins of wool will she need to buy?",
|
|
"answer": "A full outfit for each child will require 2 skeins per hat + 4 skeins per scarf + 12 skeins per sweater + 1 skein per pair of mittens + 2 skeins per pair of socks = <<2+4+12+1+2=21>>21 skeins of wool.\nSo to knit outfits for all of her grandchildren, she will need 3 * 21 = <<3*21=63>>63 skeins of wool.\n#### 63",
|
|
"id_orig": 520,
|
|
"id_shuffled": 23,
|
|
"question_annotated": "{name,Martha} is knitting winter wear for her {count,3} grandchildren. They're {children,triplets}, so they're all the same size. She wants to make a {c1,hat}, {c2,scarf}, {c3,sweater}, {c4,mittens}, and {c5,socks} for each of them. It takes {n1,2} skeins of wool to make a {c1,hat}, {n2,4} for a {c2,scarf}, {n3,12} for a {c3,sweater}, {n4,1} for a pair of {c4,mittens}, and {n5,2} for a pair of {c5,socks}. {name, Martha} wants to make {new,two} warm jackets for herself, each needing {extra,10} skeins of wool. How many skeins of wool will she need to buy?\n\n#init:\n- name = sample(names_female)\n- c1, c2, c3 = sample([\"sweater\", \"shawl\", \"hat\", \"cardigan\", \"poncho\", \"vest\", \"beanie\", \"tunic\"],3)\n- c4, c5 = sample([ \"mittens\", \"booties\", \"socks\", \"leg warmers\", \"gloves\"], 2)\n- n1, n2, n3, n4, n5 = sample(list(range(3, 19)), 5)\n- $count = list(range(2, 6)) * 10\n- $extra = range(3, 12)\n- $children = sample([(\"twins\",2), (\"triplets\",3), (\"quadruplets\", 4), (\"quintuplets\", 5)]* 10)\n- $new = numbers_within(2, 3)\n\n#conditions:\n- count == children\n\n#answer: count*(n1+n2+n3+n4+n5) + new*extra",
|
|
"answer_annotated": "A full outfit for each child will require {n1} skeins per {c1} + {n2} skeins per {c2} + {n3} skeins per {c3} + {n4} skeins per pair of {c4} + {n5} skeins per pair of {c5} = <<{n1}+{n2}+{n3}+{n4}+{n5}={n1+n2+n3+n4+n5}>>{n1+n2+n3+n4+n5} skeins of wool.\nSo to knit outfits for all of her grandchildren, she will need {count}*{n1+n2+n3+n4+n5} = <<{count}*{n1+n2+n3+n4+n5}={count*(n1+n2+n3+n4+n5)}>>{count*(n1+n2+n3+n4+n5)} skeins of wool.\nFinally we add the {new}*{extra} = {new*extra} skeins for the jackets. {new*extra} + {count*(n1+n2+n3+n4+n5)} = {count*(n1+n2+n3+n4+n5)+new*extra}\n#### {count*(n1+n2+n3+n4+n5) + new*extra}"
|
|
} |