Problem: 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 ?
Rationale: 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
annotated_formula: multiply(divide(subtract(multiply(8, 8), 4), subtract(8, const_2)), const_2)