Explanation:
that is in this case totally simple :
both points have the same x value.
that means they are both on the same vertical line at x = 6.
so, we only need to calculate the y difference, and that is then their distance :
1 - -3 = 1 + 3 = 4
the distance is 4 units.