Step-by-step explanation
Systems of equations
Juan´s age is 4 times the Peter's age, and
eigth years from now the Juan's age will be 36
so, we can solving a system of equations to solve this.
Step 1
let x represents the Juan´s age
let y represents the Peter´s age
so.
Juan´s age is 4 times the Peter's age,so

and
eigth years from now the Juan's age will be 36

Step 2
solve the equations
a)solve equation (2)

it means Juan's age is 28
b) replace the x value into equation (1)

hence, the Peter's agte is 7
I hope this helps you