The equations are given as,
2x+y=7 (1)
And,
x−y=2 (2)
From equation (1) and (2),
x=3,y=1
Therefore the roots are 3 and 1.
The sum of the roots is 3+1=4 and the product of the roots is 3×1=3.
The quadratic equation will be of the form,
x2−(sumoftheroots)×x+productoftheroots=0
x2−4x+3=0