For this case, the first thing we must do is define variables.
We have then:
x: Maggie's age
y: Age of Maggie's brother
We write the system of equations that models the problem.
We have then:
We solve the system of equations.
For this, we use substitution:
From here, we clear the value of x:
Answer:
Maggie is 9 years old