mary works in a restaurant a maximum of 40 hours . for the first 20 hours , she is paid $ 8 per hour . for each overtime hour , she is paid at a rate which is 25 % higher than her regular rate . how much mary can earn in a week ?
"mary receives $ 8 ( 20 ) = $ 160 for the first 20 hours . for the 20 overtime hours , she receives $ 8 ( 0.25 ) + $ 8 = $ 10 per hour , that is $ 10 ( 20 ) = $ 200 . the total amount is $ 160 + $ 200 = $ 360 answer c 360 ."
add(multiply(40, 8), multiply(subtract(40, 20), multiply(8, divide(25, const_100))))