The right triangle involved has sides 7, 24 and 25.
You can compute the magnitude of the trig functions from those numbers.
Then to get the signs correct, you need the mnemonic AllSinTanCos which reminds you which functions are positive in quadrants 1, 2, 3 ,4.