To determine the distance between both points (green line) you have to draw them in the cartesian system and then draw a rigth triangle whose hypotenuse will be the length needed.
From the graphic you can calculate the values for the base and height of the triangle:
base= X2-X1= 8-3=5
height= Y1-Y2= 4-0= 4
Then apply the pythagoras theorem to calculate the hypotenuse of the triangle:
a= base
b= height
c= hypotenuse
The distance between points (8,0) and (3,4) is equal to 6.40