You can put this solution on YOUR website! Since , x is in the first quadrant and sin cos and tan are all positive. (2x may end up in the second quadrant but we'll deal with that when the time comes.)
Since the tan function represents the ratio of opposite over adjacent we can use 15 for the opposite side and 8 for the adjacent side.
Next we'll use the Pythagorean Theorem to find the hypotenuse:
17 = hypotenuse
Now we want to find the cos(2x). We can use any of the identities for cos(2x):
The formulas will handle whether or not x ends up in the second quadrant and assign the correct sign. I'll use the first.
cos(x) = adjacent/hypotenuse = 8/17
sin(x) = opposite/hypotenuse = 15/17
Since cos(2x) is negative, 2x apparently does end up in the second quadrant.