{ "question": "Frankie watches TV after he finishes his homework every night. On Monday and Tuesday, he watched a 1-hour episode of his favorite show each night. On Wednesday, he watched a few episodes of a 30-minute show. On Thursday, he finished homework early and watched a 1-hour episode and a 30-minute show. On Friday, he got to stay up late for the weekend, so he watched two 1-hour episodes. If he watched 7 hours of TV in all, how many 30-minute episodes did he watch on Wednesday?", "answer": "Let W be the number of episodes he watched on Wednesday.\nAfter Monday, he had 7 - 1 = <<7-1=6>>6 hours of TV left.\nAfter Tuesday, he had 6 - 1 = <<6-1=5>>5 hours of TV left.\nAfter Thursday, he had 5 - 1 - 1/2 = 3 1/2 hours of TV left.\nAfter Friday, he had 3 1/2 - 2 = 1 1/2 hours of TV left.\nEach 30-minute episode is 1/2 hour.\nThus, W = 1 1/2 / 1/2 = 3 episodes.\n#### 3", "id_orig": 107, "id_shuffled": 21, "question_annotated": "{name,Frankie} watches TV after he finishes his homework every night. On {d1,Monday} and {d2,Tuesday}, he watched a {h1,1}-hour episode of his favorite show each night. On {d3,Wednesday}, he watched a few episodes of a {m1,30}-minute show. On {d4,Thursday}, he finished homework early and watched a {h2,1}-hour episode and a {m2,30}-minute show. On {d5,Friday}, he got to stay up late, so he watched {n2,two} {h3,1}-hour episodes. If he watched {total,7} hours of TV in all, how many {m1,30}-minute episodes did he watch on {d3,Wednesday}?\n\n#init:\n- name = sample(names_male)\n- d1, d2, d3, d4, d5 = sample_sequential(weekdays, 5)\n- $total = range(18, 33)\n- $h1 = range(3, 7)\n- $h3 = range(2, 6)\n- $m1 = range(5, 60, 5)\n- $m2 = range(5, 55, 5)\n- $h2 = range(2, 7)\n- $n2 = numbers_within(2, 5)\n- $ans = range(1, 8)\n\n#conditions: \n- divides(m1, 15)\n- divides(m2, 15)\n- total * 60 == 2* h1 * 60 + ans * m1 + h2 * 60 + m2 + n2* h3 * 60\n\n#answer: $ans", "answer_annotated": "Let {d3[0]} be the number of episodes he watched on {d3}.\nAfter {d1}, he had {total} - {h1} = <<{total}-{h1}={total-h1}>>{total-h1} hours of TV left.\nAfter {d2}, he had {total-h1} - {h1} = <<{total-h1}-{h1}={total-2*h1}>>{total-2*h1} hours of TV left.\nAfter {d4}, he had {total-2*h1} - {h2} - {Fraction(m2, 60)} = {total-2*h1-h2} - {Fraction(m2, 60)} = {format_frac(total-2*h1-h2- Fraction(m2, 60))} hours of TV left.\nAfter {d5}, he had {format_frac(total-2*h1-h2- Fraction(m2, 60))} - {n2*h3} = {format_frac(total-2*h1-h2- Fraction(m2, 60)-n2*h3)} hours of TV left.\nEach {m1}-minute episode is {Fraction(m1,60)} hour.\nThus, {d3[0]} = {Fraction(total-2*h1-h2- Fraction(m2, 60)-n2*h3)}รท{Fraction(m1,60)} = {ans} episodes.\n#### {ans}" }