To find the distance between two points in a two-dimensional plane, we use the distance formula:
d = sqrt((x2 - x1)^2 + (y2 - y1)^2)
where (x1, y1) and (x2, y2) are the coordinates of the two points.
Substituting the given values, we have:
d = sqrt((3 - 5)^2 + (8 - 2)^2)
d = sqrt((-2)^2 + 6^2)
d = sqrt(4 + 36)
d = sqrt(40)
d = 2sqrt(10)
Therefore, the distance between the points (5, 2) and (3, 8) is 2sqrt(10) units.