You can
put this solution on YOUR website!Firstly draw a diagram which will give a right angled triangle with a hypotenuse of (2x+6) and the other two sides of x and (2x+4).
Using the Pythagorean Theorem

Therefore x=-2 or x=10.
Only a positive distance makes sense so x=10.