The y difference of the 2 lines are 6(you can just count these)
The x difference of the 2 lines are 8(again you can count this)
Now calculate distance using distance formula (the pythag theorem)
sqrt(6^2+8^2)=sqrt 100= 10
Therefore the distance of AC is 10.