Problem: at scratch and dents rent - a - car , it costs $ 34.95 a day plus $ 0.23 per mile to rent a car . at rent - a - lemon , the charge is $ 25.00 a day plus $ 1.31 per mile . if you need to rent a car for 3 days , how many miles ( to nearest tenth ) must you drive for a car from both agencies to cost the same amount ?
Rationale: for sad : saddaily = $ 34.95 / day sadmile = $ 0.23 / mile for ral : raldaily = $ 25.00 / day ralmile = $ 1.31 / mile we want the raltotal = sadtotal , so we get ( raldaily * days ) + ( ralmile * miles ) = ( saddaily * days ) + ( sadmile * miles ) = > miles = ( ( saddaily * days ) - ( raldaily * days ) ) / ( ralmiles - sadmiles ) = ( ( saddaily - raldaily ) * days ) / ( ralmiles - sadmiles ) miles = ( ( $ 34.95 * 3 ) - ( $ 25.00 * 3 ) ) / ( $ 1.31 - $ 0.23 ) = 27.6 miles c . 27.6 miles
annotated_formula: divide(subtract(multiply(34.95, 3), multiply(25, 3)), subtract(1.31, 0.23))