The first one is actually B because there are 128 oz in a gallon and you have two gallons so 128 x 2 and that is 256 oz and divide that by 8 so it is 32. The second one is A.
X - how long she has lived in New York; 2x - - how long she has lived in California; x + 2x + 8 = 62 => 3x + 8 = 62 => 3x = 54 => x = 54 / 3 => x = 18 years.