x = # of apples purchased
y = # of oranges purchased
Equation 1: x + y = 12
Equation 2: .25x + .18y = $2.51
Solve for a variable in one equation and plug your answer into the remaining equation.
x + y = 12 (solve for y)
y = 12 - x
Insert your y value into equation 2, and solve for x
.25x + .18y = $2.51
.25x + .18(12 - x) = $2.51
Solve for x
.25x + 2.16 - .18x = 2.51
.07x + 2.16 = 2.51
.07x = .35
x = 5
Plug in your x value into Equation 1...
x + y = 12
and solve for y
(5) + y = 12
y = 7
Alice bought 5 apples and 7 oranges