The problem says, find the equation that expresses the distance from P(7,7) to a line that crosses the origin and has slope m, as a function of m. Or d(m) = ?

I have found several equations in rectangular and polar coordinates and what the graph should look like, but have been unable to express d as a function of m. I would appreciate some help.