You can put this solution on YOUR website!
Not quite sure about the endpoint being referred. But see below,
Let's put the given in graph: --->shown endpoints (7,0) & (0,15)
In this case, to find the "DISTANCE" (green line), we do it thru Distance Formula (variant with Pythagorean Theorem).
Continuing, , Answer
Thank you,
Jojo