x = Xcos(theta) -Ysin(theta) and y = Xsin(theta) + Ycos(theta), solve for X