How do I solve this problem and check all the solutions?

Answer:
x-5=sqrt(2x+5)
then square both sides
x2-10x+25=2x+5
x2-8x+20=0
rest is trivial
Step-by-step explanation:
Answer:
x = 10
Step-by-step explanation:
Given
x - [tex]\sqrt{2x+5}[/tex] = 5 ( subtract x from both sides )
- [tex]\sqrt{2x+5}[/tex] = 5 - x ( divide all terms by - 1 )
[tex]\sqrt{2x+5}[/tex] = x - 5 ( square both sides )
2x + 5 = (x - 5)²
2x + 5 = x² - 10x + 25 ( subtract 2x + 5 from both sides )
0 = x² - 12x + 20 ← in standard form
0 = (x - 2)(x - 10) ← in factored form
Equate each factor to zero and solve for x
x - 2 = 0 ⇒ x = 2
x - 10 = 0 ⇒ x = 10
As a check
Substitute these values into the left side of the equation and if equal to the right side then they are the solutions
x = 2
2 - [tex]\sqrt{4+5}[/tex] = 2 - [tex]\sqrt{9}[/tex] = 2 - 3 = - 1 ≠ 5
Thus x = 2 is an extraneous solution
x = 10
10 - [tex]\sqrt{20+5}[/tex] = 10 - [tex]\sqrt{25}[/tex] = 10 - 5 = 5 = right side
Thus x = 10 is the solution