The distance between points (x1, y1) and (x2, y2) can be calculated as follows:
![d=\sqrt[]{(x_2-x_1)^2+(y_2-y_1)^2}](https://img.qammunity.org/2023/formulas/mathematics/college/be685jmxw05hm2tq94m5iuge2xjynn1hfn.png)
If one of the points is the origin, say (x1, y1) = (0, 0), then:
![\begin{gathered} d=\sqrt[]{(x_2-0)^2+(y_2-0)^2} \\ \text{Operate:} \\ d=\sqrt[]{x_2^2+y_2^2} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/l88ay6lmknf50o79xpmhi21yl5pq91l2hv.png)
We only need the coordinates of one of the points and use the formula above, thus the correct choice is B.