The distance between the points (x₁,y₁) and (x₂,y₂):
Another method: The points have the same x-coordinate so they lie on the same line. y-coordinates are positive so you just subtract 3 from 12. See the picture in the attachment.
The way to solve it can be shorter :) Just look, that these points have got the same x-coordinate, so they lie on the same line, which is parallel to the OY axis, So your taks is only find different in y-coordinate. That is 12-3 = 9 And this is answer :)