I can think of two ways to get this answer. The first is what I'd call the "textbook method." This is to use the midpoint formula and solve for the unknown x1 and y1 values. It would look like this:
(x1 + (-7)) / 2 = -2 (y1 + 3) / 2 = 5
x1 + (-7) = -4 y1 + 3 = 10
x1 = 3 y1 = 7
But when the midpoint and an endpoint are given, there is another intuitive method that is really quick. I'm going to place the points in the order that you'd find them if you were going from point A to point B through midpoint M.
A (-7, 3)
M (-2, 5)
B (__, __)
The x value from A to M increased by 5. So it will increase by 5 more between M and B. -2 + 5 = 3. The y value from A to M increased by 2. So it will increase by 2 more between M and B. 5 + 2 = 7. This gets us the same answer (3, 7). We could verify that the coordinated for A and B would get this midpoint if we use the formula (which is effectively just averaging each pair of x and y values).