ohh wait sorry for the wrong answer.
so, okay
tan theta = perp/base
now put it in the triangle
you get hyp. = 25.
now find the sin theta and cos theta from the triangle
i.e.
sin theta = 7/25
and
cos theta = 24/25.
plus,
it is mentioned that theta is present in third quad.
there sin and cos func. are negative.
therefore the eqn. will change to,
cos theta - sin theta (since -(-cos theta) = cos theta).
now put the values of cos theta and sin theta in the eqn.
we get,
24/25-7/25 = 17/25.
and i hope that is the required answer.
Hope it helps!