tan = opposite side / adjacent so opp = 2 and adj = 7
Now you need to find the hypotenuse of the right angled triangle.
hypotenuse = sqrt (2^2 + 7^2) = sqrt 53
sin theta = opp / hyp and cos theta = adj/hyp
cot theta = adj / opp , sec theta = hyp/adj and cosec theta = hyp/opp.