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

8 lines
No EOL
3.3 KiB
JSON

{
"question": "In Mr. Roper's class of 30 students, 20% of the class are football players. Out of the remaining class, 25% of the students are cheerleaders or part of band. These 3 groups of students will need to leave early today to travel to an away game. How many students are leaving early?",
"answer": "20% of the 30 student class are football players so that's .20*30 = <<.20*30=6>>6 students\nThere are 30 students and 6 are football players so that leaves 30-6 = <<30-6=24>>24 students\n25% of the remaining 24 students are part of band or cheerleading so that's .25*24 = <<.25*24=6>>6 students\n6 students are football players and 6 are part of band/cheerleading so 6+6 = <<6+6=12>>12 students will be leaving early\n#### 12",
"id_orig": 982,
"id_shuffled": 25,
"question_annotated": "In {teacher,Mr. Roper}'s class of {total,30} students, {p1,20}% of the class are {group1,football players}. Out of the remaining class, {p2,25}% of the students are {group2,cheer leaders} or part of {group3,band}. These 3 groups of students will need to leave early today to travel to an away {event,game}. Half of the {group1,football players} are absent for being sick. Also, 3 cheerleaders will accompany each of these groups. How many students are leaving early to the {event,game}?\n\n#init:\n- teacher = sample(['Ms. Johnson', 'Mr. Smith', 'Dr. Lee', 'Mrs. Garcia'])\n- group1 = sample(['soccer players', 'basketball players', 'volleyball players', 'swimmers'])\n- group2, group3 = sample(['dancers', 'choir members', 'debate team members', 'robotics club members'], 2)\n- event = sample(['competition', 'tournament'])\n- $total = range(20, 150)\n- $p1 = range(10, 50)\n- $p2 = range(15, 45)\n\n#conditions:\n- p1 < 100\n- p2 < 100\n- is_int(total * p1 / 100)\n- divides(total * p1 / 100, 2)\n- is_int((total - total * p1 / 100 / 2) * p2 / 100)\n\n\n#answer: int(total * p1 / 100 / 2 + (total - total * p1 / 100) * p2 / 100) + 9",
"answer_annotated": "{p1}% of the {total} student class are {group1} so that's {p1/100}*{total} = <<{p1/100}*{total}={int(total*p1/100)}>>{int(total*p1/100)} students.\nThere are {total} students and {int(total*p1/100)} are {group1} so that leaves {total}-{int(total*p1/100)} = <<{total}-{int(total*p1/100)}={total-int(total*p1/100)}>>{total-int(total*p1/100)} students\n{p2}% of the remaining {total-int(total*p1/100)} students are part of {group3} or {group2} so that's {p2/100}*{total-int(total*p1/100)} = <<{p2/100}*{total-int(total*p1/100)}={int((total-int(total*p1/100))*p2/100)}>>{int((total-int(total*p1/100))*p2/100)} students\n{int(total*p1/100)} students are {group1} and {int((total-int(total*p1/100))*p2/100)} are part of {group3}/{group2} so {int(total*p1/100)}+{int((total-int(total*p1/100))*p2/100)} = <<{int(total*p1/100)}+{int((total-int(total*p1/100))*p2/100)}={int(total*p1/100 + (total-int(total*p1/100))*p2/100)}>>{int(total*p1/100 + (total-int(total*p1/100))*p2/100)} students will be leaving early.\nBut half of {group1} won't be able to attend so we reduce {int(total*p1/100)} / 2 = {int(total*p1/100) // 2}. Also 3 * 3 = 9 cheer leaders will join them. So we have {int(total*p1/100 + (total-int(total*p1/100))*p2/100)} - {int(total*p1/100) // 2} + 9 = {int(total*p1/100/2 + (total-int(total*p1/100))*p2/100) + 9}\n#### {int(total*p1/100/2 + (total-int(total*p1/100))*p2/100) + 9}"
}