solve for X (A, B, & C are constants): arctan(C/X)=arcsin((A-X)/B)

Is this what you are looking for?