solve by substitution method.

5x + 6y =5
x = 40 -9y

first I rewrite to y=mx+b

I get:
6y=5x+5
-9y= x +40

after that I am lost..... can someone please help me??

Sure, I can help you solve this system of equations using the substitution method. Here are the steps you can follow:

Step 1: Rewrite one of the equations in terms of a single variable.
You have x = 40 - 9y. Let's rewrite it as x = -9y + 40.

Step 2: Substitute the expression from Step 1 into the other equation.
Substitute x = -9y + 40 into the equation 5x + 6y = 5.

5(-9y + 40) + 6y = 5

Step 3: Simplify and solve for y.
-45y + 200 + 6y = 5
-39y + 200 = 5
-39y = -195
y = -195 / (-39)
y = 5

Step 4: Substitute the value of y back into one of the original equations to solve for x.
Let's use x = -9y + 40.

x = -9(5) + 40
x = -45 + 40
x = -5

Step 5: Check your solution by substituting the values of x and y into both original equations.
Checking the first equation: 5x + 6y = 5
5(-5) + 6(5) = 5
-25 + 30 = 5 (True)

Checking the second equation: x = 40 - 9y
-5 = 40 - 9(5)
-5 = 40 - 45
-5 = -5 (True)

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