Problem: bag a contains red , white and blue marbles such that the red to white marble ratio is 1 : 3 and the white to blue marble ratio is 2 : 3 . bag b contains red and white marbles in the ratio of 1 : 4 . together , the two bags contain 42 white marbles . how many red marbles could be in bag a ?
Rationale: "6 is the answer . bag a - r : w : b = 2 : 6 : 9 let w in bag a be 6 k bab b - r : w = 1 : 4 let w in bag b be 4 p w = 42 = 6 k + 4 p = > k = 5 , p = 3 total red ' s in bag a will be 2 k = 10 d"
annotated_formula: divide(42, add(multiply(3, 2), 4))