This is my problem:

The square root of (2x+20) + the square root of (2x)=10

This is how I worked it: I squared both sides to get 2x+20+2x=10

4x=80

x=20

The answer in the book is 8. I plugged in both answers and 8 is correct. But I don't understand how?