Hello, Teagan,
I'm assuming you are looking for the shortest distance between the line and the point. If we put both on a graph, we can visualize the question and then more easily pick an approach for solving it.
Graph the line y = x + 5 and add point A (7,-2). Then drew a perpendicular line to the y=x+5 that goes through point A.
Unfortunately, there isn't room here for my graph. But once you've done your own, you'll see that we have a right triangle with two sides equal to 7 each. Use the Pythagorean theorem to solve for the distance between point A and the green line, the hypotenuse (H). I get 7*2(1/2) or close to 9.90.
I hope this helps,
Bob