Kindly advise how do we solve this type of question. So far we know that it is a right-angled triangle. Thank you
Let ABC be a triangle with area 30. Let D be any point in its interior and let e, f and g denote the distances from D to the sides of the triangle. What is the value of the expression $5e+12f+13g$?

The area of the big triangle is the sum of $$13\cdot g+(12-e)f+2ef+(5-f)e=60$$ so $$12g+5e+12f=60$$