The distance between points (x1, y1) and (x2, y2) can be calculated as follows:
If one of the points is the origin, say (x1, y1) = (0, 0), then:
We only need the coordinates of one of the points and use the formula above, thus the correct choice is B.