2/x-5=1/x+2

the teacher said i got it wrong when i got -1/7 he got -9 if that is please explain.

you add 5 to the right side.

so you have 2/x=1/x+7
2/x-1/x=7
1/x=7
x=1/7

the answer is x=1/7.
i think your teacher's wrong.

It looks like some parenthesis would help clear this up.

2/(x-5) = 1/(x+2)
cross multiply...
2*(x+2) = x-5
= 2x + 4 = x - 5
subtract 4 from both sides
2x = x - 9
subtract x from both sides
x = -9
check by substituting -9 back into the original equation.
2/(-9 - 5) = 1/(-9 + 2
2/-14 = 1/-7

To solve this equation, you need to find the value of x that makes the equation true. Here's how you can approach it step by step:

Step 1: Simplify the equation by getting rid of the denominators:
Multiply both sides of the equation by the common denominator of x(x+2) and 7:
7 * (2/x-5) = 7 * (1/x+2)
This simplifies the equation to:
14(x+2) = 7(x-5)

Step 2: Expand and solve for x:
Using distributive property, expand the left side and the right side of the equation:
14x + 28 = 7x - 35

Step 3: Combine like terms:
Subtract 7x from both sides of the equation:
14x - 7x + 28 = - 35

Simplifying further:
7x + 28 = - 35

Step 4: Isolate the variable:
Subtract 28 from both sides of the equation:
7x + 28 - 28 = -35 - 28
7x = -63

Step 5: Solve for x:
Divide both sides of the equation by 7:
(7x)/7 = -63/7
x = -9

Therefore, the solution to the equation 2/x-5=1/x+2 is x = -9.

It seems like your teacher also arrived at the conclusion that x = -9. If your teacher got a different answer of x = -9, there might have been an error in the calculations or miscommunication. It's always a good idea to check your work and clarify any confusion with your teacher to understand the correct solution better.