If x+2=4sinx for 0<x<(pi/2), express cos(2x) in terms of x. Cos(2x)=?

I'm assuming I have to use the cos(2x)=1-2((sin^2)x) relationship, but I'm stuck on how to rearrange everything to that I can get an equivalent equation and therefore find the answer. Detailed explanations are appreciated so I can do future problems like this confidently on my own!