tom purchased 8 kg of apples at the rate of 70 per kg and 9 kg of mangoes at the rate of 65 per kg . how much amount did he pay to the shopkeeper ?
"cost of 8 kg apples = 70 × 8 = 560 . cost of 9 kg of mangoes = 65 × 9 = 585 . total cost he has to pay = 560 + 585 = 1145 . b )"
add(multiply(8, 70), multiply(9, 65))