How to solve the system of equations x + y = 7, xy = 12

How to solve the system of equations x + y = 7, xy = 12

x+y=7
x=7-y
(7-y)y=12
7y-y^2=12
y^2-7y+12=0
(y-3)(y-4)=0
y1=3 y2=4
x1=4 x2=3