Answer:
The required equation is
. If maggies is elder, then
and if maggies is younger, then
.
Explanation:
Let the x represents maggies age and y represents terrance age, make a table of possible values for x and y.
It is given that the difference between maggies age and terrance age is 3.
It means

On simplification, we get


Case 1: If maggies is elder.

Case 2: If maggies is younger.

The table of values is
x y₁ y₂
-3 -6 0
0 -3 3
3 0 6
The graph of both functions are shown below.