today jim is twice as old as fred, and sam is 4 years younger than fred. 4 years ago jim was 8 times as old as sam. how old is jim now?	Choose one
A) 8 B) 12 C) 16 D) 20 E) 24
<gadget id="calculator">8 * 8</gadget>
<output>64</output>

<gadget id="calculator">64 - 4</gadget>
<output>60</output>

<gadget id="calculator">8 - 2</gadget>
<output>6</output>

<gadget id="calculator">60 / 6</gadget>
<output>10</output>

<gadget id="calculator">10 * 2</gadget>
<output>20</output>

<result>D</result>
today jim is twice as old as fred, and sam is 4 years younger than fred. 4 years ago jim was 8 times as old as sam. how old is jim now?
multiply(divide(subtract(multiply(8, 8), 4), subtract(8, const_2)), const_2)
we ' re asked how old jim is now . we ' re given three facts to work with : 1 ) today , jim is twice as old as fred 2 ) today , sam is 4 years younger than fred 3 ) four years ago , jim was 8 times as old as sam . let ' s test answer d : 20 if . . . . jim is currently 20 years old . . . . fred is 10 years old sam is 6 years old 4 years ago , jim was 16 and sam was 2 , so jim was 8 times sam ' s age . this is an exact match for what we were told , so this must be the answer . d