You can
put this solution on YOUR website!
.
The idea here is that if

then either

or

. For example,

because

.
So, there are two equations to solve:

and

.
Let's solve the first one:

.
Add x/2 to both sides:

.
Subtract 2 from both sides:

.
Multiply both sides by 2:

so

. That's the first answer.
Let's solve the second equation:

.
First, let's simplify the right side of the equation:

.
Add 2 to both sides of the equation:

.
Add x to both sides of the equation:

.
Multiply both sides of the equation by 2:

sp

which is the 2nd answer.