hey you little math-helpers out there

i'd really appreciate your help with this one.
probably not hard if you just know how to.

i need to have either one of these equations solved for 'd':


I : f = cos(d) * x + sin(d) * z
II : e = -sin(d) * x + cos(d) * z


easy?

thanks in advance - marc