Question 4·Easy·Systems of Two Linear Equations in Two Variables
At a farmer's market, apples cost $2 each and peaches cost $3 each. Mara bought a total of 7 pieces of fruit for $17. How many peaches did she buy?
For word problems about buying items with given prices and totals, quickly translate the situation into a system of equations: one for the total number of items, and one for the total cost. Assign clear variables, solve one equation for a variable (substitution) or line up coefficients to eliminate a variable (elimination), then solve and plug back in. Finally, check that your numbers satisfy both the item total and the money total—this catches arithmetic slips and helps you avoid guessing from the answer choices.
Hints
Turn the words into equations
Assign a variable for the number of apples and another for the number of peaches. Use the information about the total number of fruits and the total cost to write two equations.
Use the total fruit equation first
From the equation that uses the total number of fruits, solve for one variable in terms of the other (for example, express apples in terms of peaches, or vice versa).
Substitute into the money equation
Take the expression you found for one variable and substitute it into the equation with the prices. Then solve that new equation to find the number of peaches.
Check your answer with both conditions
After you find a possible number of peaches, make sure the numbers of apples and peaches add to 7 and that the total cost really is $17.
Desmos Guide
Enter the system of equations
In Desmos, let be the number of apples and be the number of peaches. Type the two equations:
x + y = 72x + 3y = 17
Find the intersection point
Look at the graph and tap/click where the two lines intersect. Desmos will show the intersection as an ordered pair .
Read the number of peaches from the graph
From the intersection point, read the -value. That -value is the number of peaches Mara bought.
Step-by-step Explanation
Define variables and translate the situation into equations
Let be the number of apples and be the number of peaches that Mara bought.
From the problem:
- She bought 7 pieces of fruit total, so:
- Apples cost $2 each and peaches cost $3 each, and she spent $17 total, so:
Now we have a system of two equations in two variables.
Use substitution to write one variable in terms of the other
From the first equation , solve for in terms of :
We will substitute this expression for into the second equation.
Substitute and solve for the number of peaches
Substitute into the cost equation :
Distribute the 2:
Combine like terms :
Now solve this equation for .
Finish solving and interpret the result
From , subtract 14 from both sides:
So Mara bought peaches.