the cost of 10 kg of mangos is equal to the cost of 24 kg of rice . the cost of 6 kg of flour equals the cost of 2 kg of rice . the cost of each kg of flour is $ 23 . find the total cost of 4 kg of mangos , 3 kg of rice and 5 kg of flour ?
let the costs of each kg of mangos and each kg of rice be $ a and $ r respectively . 10 a = 24 r and 6 * 23 = 2 r a = 12 / 5 r and r = 69 a = 165.6 required total cost = 4 * 165.6 + 3 * 69 + 5 * 23 = 662.4 + 207 + 115 = $ 984.40 b
add(add(multiply(4, multiply(divide(24, 10), divide(multiply(23, 6), 2))), multiply(3, divide(multiply(23, 6), 2))), multiply(5, 23))