The solution to the system of equations 2x + y = 18 and 3x − 3y = −9 is x = 5 and y = 8. Substitution gives y = 18 − 2x, so 3x − 3(18 − 2x) = −9 becomes 9x − 54 = −9, and x = 5. Then y = 18 − 10 = 8. Both original equations check: 10 + 8 = 18 and 15 − 24 = −9.
What the two equations actually describe
Each equation in this system is a straight line, and the pair asks where those lines cross. Rewrite 2x + y = 18 in slope-intercept form by subtracting 2x from both sides: y = −2x + 18. The line falls two units for every one unit it moves right, crossing the y-axis at 18.
The second equation needs more work because both variables carry coefficients. Start with 3x − 3y = −9 and divide every term by 3, which preserves the solution set: x − y = −3. Solving for y gives y = x + 3. This line rises one unit per unit right and crosses the y-axis at 3.
Setting the two expressions equal, −2x + 18 = x + 3, produces 15 = 3x and x = 5. Substituting back gives y = 8. The intersection point (5, 8) is the only ordered pair that satisfies both equations simultaneously.
The mechanism behind every solution method is the same. You combine the two equations to eliminate one variable, solve the resulting single-variable equation, then back-substitute. Substitution, elimination, and graphing are three routes to one algebraic fact.
Why elimination and substitution agree here
Substitution works by replacing y with an equivalent expression in x. Because y = 18 − 2x is true wherever the first equation holds, swapping it into the second equation keeps the system's meaning intact. The arithmetic then collapses to 9x − 54 = −9, so 9x = 45 and x = 5.
Elimination attacks the same problem differently. Multiply 2x + y = 18 by 3 to get 6x + 3y = 54. Add that to 3x − 3y = −9, and the y terms cancel: 9x = 45, so x = 5. Substituting x = 5 into 2x + y = 18 gives y = 8.
The matching result is not a coincidence. Both methods apply the same underlying principle: adding equal quantities to both sides of an equation, or substituting equal quantities, preserves truth. Elimination just arranges the coefficients so one variable cancels cleanly.
A quick check confirms the answer. Plug (5, 8) into 3x − 3y = −9: 15 − 24 = −9, correct. Plug it into 2x + y = 18: 10 + 8 = 18, correct. A solution that satisfies only one equation is not a solution to the system.
Reading the answer off a graph
Graph both lines on the same axes and the crossing point is the solution. The first line, y = −2x + 18, passes through (0, 18) and (9, 0). The second line, y = x + 3, passes through (0, 3) and (−3, 0). They meet at (5, 8), which sits in the first quadrant where both x and y are positive.
Graphing is the fastest way to see whether a solution exists at all. Parallel lines never cross, so the system has no solution. Coincident lines overlap everywhere, so infinitely many pairs work. Two lines with different slopes always cross exactly once, which is the case here: slopes of −2 and 1 guarantee a single intersection.
The graph also shows why the solution is unique. Two distinct nonparallel lines can share at most one point, so a linear system in two variables has exactly one solution, none, or infinitely many. There is no fourth possibility.
Comparison of solution methods
| Method | Best when | Work for this system | Main risk |
|---|---|---|---|
| Substitution | One variable has coefficient 1 or −1 | Moderate: y = 18 − 2x, then one substitution | Algebra slip when distributing −3 |
| Elimination | Coefficients line up or scale easily | Fast: multiply first equation by 3, add | Sign errors when adding |
| Graphing | You need a visual or an estimate | Quick: two lines, read (5, 8) | Imprecise if the point is not on a grid line |
| Matrix or inverse | Many equations or repeated solves | Overkill for two equations | Setup errors |
| Cramer's rule | Small systems, determinant practice | Works: determinants give x = 5, y = 8 | Division by zero if determinant is 0 |
For a 2×2 system, elimination is usually the most reliable hand method because it avoids fractions. Substitution shines when a coefficient is already 1 or −1. Graphing is best for intuition, not exact answers.
Edge cases that change the answer
A linear system's behavior depends on the ratio of its coefficients. For a₁x + b₁y = c₁ and a₂x + b₂y = c₂, compare a₁/a₂ with b₁/b₂. Different ratios mean one solution. Equal ratios with different constant terms mean parallel lines and no solution. Equal ratios with proportional constants mean the same line and infinitely many solutions. This system has ratio 2/3 versus 1/(−3), which differ, so exactly one solution exists.
The determinant of the coefficient matrix, (2)(−3) − (1)(3) = −9, is nonzero, confirming a unique solution. A zero determinant would flag either no solution or infinitely many.
Fractional and negative answers are legal. If the constants had been different, x or y could come out as a fraction like 7/2 or a negative number like −4. Nothing about the method changes; only the arithmetic does.
Watch for sign errors when subtracting equations, the most common failure. Distribute negative coefficients across every term inside parentheses. Check the answer in both original equations, not just one. Do not divide by a variable expression that could equal zero. Treat a zero determinant as a signal to investigate, not a final answer.
Misconceptions worth correcting
One common error is solving one equation and stopping. Finding x = 5 from the combined equation is only half the job; the solution is an ordered pair, and y must be recovered and verified.
Another misconception is that the system has two answers because it has two equations. The two equations constrain each other and produce one point. Only when the lines coincide does the solution set become infinite.
Students also assume a negative constant means a negative solution. Here the constant −9 produces a positive y of 8. Signs of coefficients and constants do not predict signs of solutions.
A subtler trap is adding equations without aligning like terms. Elimination only cancels a variable when the x terms sit under the x terms and the y terms under the y terms. Misaligned columns silently produce wrong answers that still look plausible.
Practical steps for solving similar systems
Write both equations in standard form, with x terms, y terms, and constants in matching columns. Look for a coefficient of 1 or −1; if one exists, substitution is usually fastest. Otherwise scale one or both equations so a variable's coefficients become opposites, then add. Solve the single-variable equation and back-substitute into the simpler original equation. Verify the ordered pair in both original equations before accepting it. If the variables cancel entirely, check whether the remaining statement is true or false to classify the system.
For this system, step 3 applies: multiply 2x + y = 18 by 3, add to 3x − 3y = −9, and x = 5 falls out immediately.
A useful threshold: if the coefficient matrix determinant is zero, stop and classify. A true statement like 0 = 0 means infinitely many solutions; a false statement like 0 = 5 means none.
Limits of what this method tells you
Linear methods assume the relationships are exactly linear. Real data rarely are, and a system fitted to noisy measurements gives a best-fit intersection, not a guaranteed truth. This worked example is exact because the coefficients are exact.
The single-solution result also depends on exact arithmetic. Rounding intermediate values can shift the apparent intersection, especially when lines are nearly parallel and the determinant is small.
Finally, a 2×2 system is the simplest case. Larger systems need matrix methods and care about conditioning, and nonlinear systems can have multiple intersections that elimination cannot enumerate. This example illustrates the mechanism but does not generalize to every system you will meet.