Akhila went to a fair in her village. She wanted to ride the Giant Wheel and play Hoopla, a game in which you throw a ring over the items kept in a stall and win the item if the ring covers it completely. She played Hoopla half as many times as she rode the Giant Wheel. Each ride cost ₹3 and each game of Hoopla cost ₹4. She spent ₹20 in all. How many rides did she take, and how many times did she play Hoopla?
You could guess and check, but there is a neater way. Two unknown numbers and two facts about them give a pair of linear equations in two variables. This lesson, from Chapter 3 of the NCERT Class 10 textbook, shows how to solve such a pair by drawing both lines on one graph, and how to predict from the coefficients alone whether a solution exists. The same ideas are used in money problems, mixture and speed problems, and any situation where two conditions must hold together.
What a pair of linear equations is
Linear equation in two variables
A linear equation in two variables and can be written as
where , , are real numbers and and are not both zero. Each variable appears only to the first power, and and are never multiplied together.
Setting up Akhila's pair
Let be the number of rides on the Giant Wheel and the number of Hoopla games. "Hoopla was played half as many times" gives , that is,
The spending (₹3 per ride, ₹4 per game, ₹20 in total) gives
A solution of the pair is a pair of values of and that makes both equations true at the same time.
Turning each equation into a line
The key fact
Every solution of a linear equation in two variables is a point on a straight line, and every point on that line is a solution. So a pair of linear equations is a pair of straight lines on the same axes, and solving the pair means finding the point or points that lie on both lines.
The three possible pictures
Two lines in a plane can behave in only three ways:
- They intersect at exactly one point. The pair has a unique solution. Such a pair is called consistent.
- They are parallel. They never meet, so the pair has no solution. Such a pair is called inconsistent.
- They coincide (they are the same line). Every point on the line is a solution, so there are infinitely many solutions. Such a pair is called dependent, and a dependent pair is also consistent.

Predicting the picture from the coefficients
The ratio test
Write the pair in general form:
Then compare the ratios of the coefficients:
- If , the lines intersect: a unique solution (consistent).
- If , the lines coincide: infinitely many solutions (dependent and consistent).
- If , the lines are parallel: no solution (inconsistent).
Why the test works
If , then and , so the first equation is . Both lines then have the same steepness, so they are either parallel or the same line. If also , the first equation is exactly times the second, so the two lines are identical. If , then would have to equal two different numbers at once, which is impossible, so there is no common point. If the first two ratios differ, the lines have different steepness and must cross exactly once.
Three pairs checked
Pair 1: and . Here and . These differ, so the lines intersect.
Pair 2: and . Here , and . All equal, so the lines coincide.
Pair 3: and . Here and , but . The first two agree and the third does not, so the lines are parallel.
The graphical method
Method in steps
- Write each equation so that is easy to find, for example for .
- For each equation, choose at least two values of (three is safer) and find the matching . Choose values that give whole numbers.
- Plot the points on the same axes with a suitable scale and draw a straight line through each set.
- Read off the point where the lines meet. If they are parallel, there is no solution; if they coincide, there are infinitely many.
- Check the point by substituting it into both original equations.
Worked examples
Example 1: Akhila's rides and games
Solve and graphically.
Points on (that is, ): and .
Points on : when , , giving ; when , , so , giving .
The point satisfies as well, so the two lines meet there.

Check: and . In money terms, 4 rides cost ₹12 and 2 games cost ₹8, which is ₹20 in all.
Answer: Akhila took 4 rides on the Giant Wheel and played Hoopla 2 times.
Example 2: A consistent pair solved on the graph
Check whether and are consistent. If so, solve them graphically.
Ratio test: and . These differ, so the pair is consistent with a unique solution.
For : gives , and gives . Points and .
For : gives , and gives , so . Points and .
Drawing line and line , they meet at .

Check: and .
Answer: the pair is consistent, and the solution is , .
Example 3: Coincident lines without drawing
Does the pair and have no solution, one solution or infinitely many?
Multiply the second equation by :
This is exactly the first equation, so the two equations describe the same line. The ratio test agrees: , and .
Answer: the lines are coincident, so the pair has infinitely many solutions.
Example 4: Champa's shopping
Champa went to a "Sale" to buy some pants and skirts. When her friends asked how many of each she had bought, she said: "The number of skirts is two less than twice the number of pants purchased. Also, the number of skirts is four less than four times the number of pants purchased." How many of each did she buy?
Let be the number of pants and the number of skirts. Then
Points on : and . Points on : and .
The point is also on the first line, since . So the lines meet at .
Check: twice 1 minus 2 is 0, and four times 1 minus 4 is 0. Both statements hold.
Answer: Champa bought 1 pair of pants and no skirts.
Example 5: Spotting a parallel pair
Show that and have no common solution.
Multiply the first equation by 2: . The second equation says . The same expression cannot equal both 8 and 12, so no point lies on both lines.
Answer: the lines are parallel, and the pair is inconsistent.
Where the graphical method falls short
The graph shows at a glance whether there is one solution, none or infinitely many. Its weakness is precision. If the true solution is something like , or , no pencil drawing can locate it exactly. That is why the chapter goes on to the algebraic methods, substitution and elimination, which give exact answers.
Common mistakes
- Plotting only two points and misreading one of them. Use a third point on each line as a check.
- Getting the signs of and wrong: becomes , so , not .
- Calling a coincident pair inconsistent. A coincident pair has infinitely many solutions, so it is consistent.
- Reading an intersection point off the graph and not substituting it back into both equations.
- Using unequal scales on the two axes without noticing, which makes the lines look wrongly placed.
- Stopping at "the lines meet at " in a word problem instead of answering the question in words.
Try these
- Is the pair and consistent? Answer: No. The lines are parallel, so there is no solution.
- Solve graphically: and . Answer: , .
- Solve graphically: and . Answer: , .
- Classify the pair and . Answer: coincident lines, infinitely many solutions.
- For what value of does the pair and fail to have a unique solution? Answer: (for every other value of the solution is unique).
- The sum of two numbers is 12 and their difference is 4. Find the numbers by drawing graphs. Answer: 8 and 4.
Key terms
- Linear equation in two variables
- An equation of the form with and not both zero; its graph is a straight line.
- Pair of linear equations
- Two linear equations in the same two variables, considered together.
- Solution of a pair
- Values of and that satisfy both equations at once; on a graph, a common point of the two lines.
- Consistent pair
- A pair with at least one solution: intersecting or coincident lines.
- Inconsistent pair
- A pair with no solution: parallel lines.
- Dependent pair
- A pair whose two equations describe the same line, giving infinitely many solutions.
- Coincident lines
- Two lines that lie exactly on top of each other.
- Ratio test
- Comparing , and to decide which of the three cases a pair belongs to.
Common questions
How many points do I need to draw a line?
Two points fix a line, but plotting a third is a good habit. If the three points do not lie in a straight line, there is an arithmetic slip somewhere.
Is a dependent pair consistent?
Yes. Consistent means the pair has at least one solution, and a dependent pair has infinitely many.
What if one of , or is zero?
Then the ratio cannot be formed directly. Compare the equations instead by checking whether one is a multiple of the other, or draw the lines. For example, and are both horizontal, so they are parallel.
Can the answer to a word problem be a fraction?
It depends on the context. Rupees per item can be a fraction, but a number of people or rides must be a whole number. If you get a fraction where only whole numbers make sense, recheck the equations.
Why learn the graphical method if algebra is more exact?
The graph explains why a pair can have one, none or infinitely many solutions, and it gives a quick visual check on an algebraic answer.
References
- National Council of Educational Research and Training. Mathematics: Textbook for Class X. NCERT, New Delhi.
- Stewart, J., Redlin, L. and Watson, S. Precalculus: Mathematics for Calculus. Cengage Learning.
- Gelfand, I. M. and Shen, A. Algebra. Birkhäuser.