solve by substitution method

x^2=y^2+39
x-y=3

y=x-3

Substitute into the first equation

x^2=(x-3)^2+39

x^2=x^2-6x+9+39

solve fo x

would it be (8,-5)

To solve the system of equations using the substitution method, we need to isolate one variable in one equation and substitute it into the other equation. Let's solve it step by step.

1. Start with the equation x - y = 3.

2. Isolate x in terms of y by adding y to both sides:
x = y + 3.

3. Now substitute the value of x from equation (2) into equation (1):
(y + 3)^2 = y^2 + 39.

4. Expand and simplify the equation:
y^2 + 6y + 9 = y^2 + 39.

5. Subtract y^2 from both sides to get a simplified equation:
6y + 9 = 39.

6. Subtract 9 from both sides to isolate the y term:
6y = 30.

7. Divide by 6 on both sides to solve for y:
y = 5.

8. Substitute the value of y back into equation (2) to find the value of x:
x = 5 + 3 = 8.

So, the solution to the system of equations is x = 8 and y = 5.