the entrance fee for a fair is $ 5 for persons under the age of 18 , and 20 % more for persons older . each ride at the fair costs $ 0.50 . if joe goes with her 6 years old twin brothers , and they each took 3 rides in total . how much money does joe end up spending at the fair ?
total entrance fee is ( 2 * $ 5 ) + ( 1.20 * 5 ) = $ 16 total rides fee is ( 0.50 * 3 ) * 3 = $ 4.50 total money spent is $ 20.50 answer is b
add(add(multiply(5, const_2), multiply(add(divide(20, const_100), const_1), 5)), multiply(multiply(3, const_3), 0.5))