Which plane is closer to the base of the airport tower?

If I make a graph, I see the base of the tower is at (0, 0) and Plane A is at

(16,000, 20,000).

(16,000, 20,000).

I can use the distance formula to find the distance from Plane A to the tower.

I can also find the distance from Plane B at (23,000, 8,000) to the tower.

Plane B is closer.

25,612 > 24,351