You should use the law of cosines, namely that c2 = a2 + b2 - 2ab cos(2θ),
with a = 10, b = 17, and c = 24, so in general we have:
2ab cos(2θ) + c2 = a2 + b2 ----> 2ab cos(θ) = a2 + b2 - c2 ------->
cos(θ) = (a2 + b2 - c2) / (2ab) -----> θ = arccos[ (a2 + b2 - c2) / (2ab) ].
Finally, if you need θ in degrees, then you need to multiply the answer you get by 180 degrees / π.