Final answer:
The distance between two points can be found using the formula sqrt((x2 - x1)^2 + (y2 - y1)^2).
Step-by-step explanation:
The distance between two points can be found using the formula sqrt((x2 - x1)^2 + (y2 - y1)^2). To find the distance between the two points represented by p1 and p2, we substitute the x and y coordinates of p1 and p2 into the formula:
distance = sqrt((p2.x - p1.x)^2 + (p2.y - p1.y)^2).