In a fruit shop, Xiaoming bought kilogram of apples, kilograms of watermelons, and kilograms of oranges for a total of yuan; Xiaohui bought kilograms of apples, kilograms of watermelons, and kilograms of oranges for a total of yuan. Then, the total cost of buying kilogram of apples and kilograms of watermelons is ______ yuan.
Problem 18
Official solution
To solve the problem, we start by defining variables for the prices of the fruits per kilogram. Let:
- represent the price of kilogram of apples in yuan,
- represent the price of kilogram of watermelons in yuan,
- represent the price of kilogram of oranges in yuan.
Given the purchases made by Xiaoming and Xiaohui, we can set up the following system of equations based on the total cost of their purchases:
1. For Xiaoming's purchase:
2. For Xiaohui's purchase:
To find the total cost of buying kilogram of apples and kilograms of watermelons, we need to eliminate from the equations. We do this by subtracting equation (1) from equation (2), which eliminates and gives us an equation in terms of and only:
Equation (3) directly gives us the total cost of buying kilogram of apples and kilograms of watermelons, which is the sum of and . Therefore, the total cost is: