How to find the distance from the midpoint to the origin in the plane rectangular coordinate system

How to find the distance from the midpoint to the origin in the plane rectangular coordinate system

Make a vertical line from the midpoint of coordinate system to X or Y axis, and use Pythagorean theorem to calculate the oblique side length is the distance from the point to the origin