The minute hand on a clock is 8 cm long and the hour hand is 5 cm long. Give an expression for d, the distance between the tips of the hands, in terms of a, the angle between the hands.

D=

I've been trying to figure this out for the past hour... needless to say, I just have problems with these questions.