Answer:
8) answer=5 9)answer=15
Explanation:
all you have to do is replace in the following formula

Where
X1: is the first number of the first point
Y1: is the second number of the first point
X2: is the first number of the second point
Y2: is the second number of the second point
you replace in the formula and solve
I attach solution