y =( (C-A)/2 ) sin( (X - (A - ( (C - A)/2 ) ) )( pi/(C-A) ) ) + (B - ( (B-D)/2 )

How do I rearange this for this equation for the all of the variables including

A, B, C, D, X

were pi is the greek leter pi
if you didn't notice this is the general formula for when you are given two points on the sine wive
(Max)
(Min)
were the min is the minimum point on the sine wave proceding the given max were the variables are the cordinates of those points
(A, B) = max
(C, D) = Min (right after max)

THANK YOU!!!

I'm fine if you just give me the equations and don't show the work. I tried to look it up on the internet but couldn't find these formulas