I don't get how you do this please help, thanks!

Write the equation in the form ax+b=0. Then write the related function y=ax+b.

5x+2=7

5x-5=0

don't know where you're gonna get the y.

May I ask how you got 5x-5=0 ?

This one is all yours, go for it.

To write the equation 5x+2=7 in the form ax+b=0, you need to isolate the variable x on one side of the equation.

Step 1: Start with the given equation: 5x+2=7.

Step 2: Subtract 2 from both sides of the equation to move the constant term to the other side:
5x+2-2 = 7-2
5x = 5

Step 3: To get x alone, divide both sides of the equation by the coefficient of x, which is 5:
5x/5 = 5/5
x = 1

Now you have the equation in the form ax+b=0 as 5(1) + 2 = 7.

To write the related function y=ax+b, you would substitute the value of x you found (x=1) into the equation. So, y=5(1) + 2 becomes y=5+2, which simplifies to y=7.

So, the equation 5x+2=7 can be written as y=7 in the form of the related function.