Could someone help me with this problem?

A right triangle in the first quadrant has the coordinate axes as sides, and the hypotenuse passes through the point (1,8). Find the vertices of the triangle such that the length of the hypotenuse is minimum.

I'm having trouble finding even the primary equation.