Step 1 : Define the variables
Let
$$x$$ = Aftab’s present age (in years)
$$y$$ = Daughter’s present age (in years)
Step 2 : Translate the first statement
Seven years ago, Aftab’s age was $$x-7$$ and the daughter’s age was $$y-7$$.
The condition “I was seven times as old as you” gives
$$x-7 = 7\bigl(y-7\bigr)$$
Simplify:
$$x-7 = 7y-49\\[4pt] x-7y = -42\\[4pt] \boxed{ \,x-7y=-42\, }$$
Step 3 : Translate the second statement
Three years from now, Aftab’s age will be $$x+3$$ and the daughter’s age will be $$y+3$$.
The condition “I shall be three times as old as you” gives
$$x+3 = 3\bigl(y+3\bigr)$$
Simplify:
$$x+3 = 3y+9\\[4pt] x-3y = 6\\[4pt] \boxed{\,x-3y=6\,}$$
We have the required pair of linear equations
$$x-7y = -42, \qquad x-3y = 6$$
Step 4 : Solve by the method of substitution
From $$x-3y = 6$$ we express $$x$$ in terms of $$y$$:
$$x = 3y + 6$$
Substitute this in the first equation $$x-7y = -42$$:
$$(3y+6) - 7y = -42\\[4pt] -4y + 6 = -42\\[4pt] -4y = -48\\[4pt] y = 12$$
Put $$y=12$$ in $$x = 3y + 6$$:
$$x = 3(12) + 6 = 42$$
Therefore
Aftab’s present age $$= 42$$ years
Daughter’s present age $$= 12$$ years
Step 5 : Graphical representation
Draw the coordinate axes. Each ordered pair $$\bigl(x, y\bigr)$$ represents (Aftab’s age, daughter’s age).
- For the line $$x-7y=-42$$ choose convenient values:
| $$y$$ | Compute $$x=7y-42$$ |
|---|
| 0 | $$-42$$ |
| 6 | 0 |
| 12 | 42 |
Plot any two points such as $$(-42,0)$$ and $$(42,12)$$, then draw the straight line. - For the line $$x-3y=6$$ choose convenient values:
| $$y$$ | Compute $$x=3y+6$$ |
|---|
| 0 | 6 |
| 6 | 24 |
| 12 | 42 |
Plot points such as $$(6,0)$$ and $$(42,12)$$, then draw this line.
The two lines intersect at the point $$(42, 12)$$, confirming the solution obtained algebraically.
Thus, the situation is fully represented both algebraically and graphically, and the ages are determined.