Since triangle ADE is similar to triangle ABC and the scale factor is 2, the following relation must be fulfilled:

The, by substituting the given information, we have

By multiplying both sides by x+2, we get

which gives

Then, by subtracting 4x to both sides, we have

and by adding 8 to both sides, we obtain

then, x is given by

Then, by substitutn