Problem: a certain barrel , which is a right circular cylinder , is filled to capacity with 60 gallons of oil . the first barrel is poured into a second barrel , also a right circular cylinder , which is empty . the second barrel is twice as tall as the first barrel and has twice the diameter of the first barrel . if all of the oil in the first barrel is poured into the second barrel , how much empty capacity , in gallons , is left in the second barrel ?
Rationale: radius of first cylinder = r , diameter = 2 r , height = h radius of second cylinder = 2 r , diamter = 2 d and height = 2 h volume of first cylinder = pie ( r ^ 2 ) * h = 60 volume of second cylinder = pie ( 2 r ^ 2 ) 2 h put the value of pie ( r ^ 2 ) * h = 60 in the second cylinder , volume = pie ( r ^ 2 ) * 4 * 2 = 60 * 8 = 480 gallons empty capacity = 420 gallons answer d
annotated_formula: subtract(multiply(60, power(const_2, const_3)), 60)