the distance of (-6,3) to the line y = -5 is the distance between the points (-6,3) and (-6,-5), you don't really need the formula for this, but you can use it if you want to (we are looking for the shortest distance here, which is a vertical line, so the x's are the same)