In the system of equations, if the values of a pair of X and Y in 4x + k = 7 and 3x-5y = 16 are equal, what is the value of K, and the solution of the system of equations is obtained

In the system of equations, if the values of a pair of X and Y in 4x + k = 7 and 3x-5y = 16 are equal, what is the value of K, and the solution of the system of equations is obtained

4X+K=7(1)
3X-5Y=16(2)
X=Y(3)
Substituting (3) into (2) yields:
3X-5X=16
-2X=16
X=-8;
Y=-8;
Substituting (1) to get:
-32+K=7
K=39
So it's the same for the system of equations
X=8;
Y=8;
K=39.