I have a hollow rectangular cardboard box that is 12" square on each end and the four long sides are 24" each, so each side has dimensions 12" x 24". Inside the box is a hungry spider positioned dead center on a square end. A lazy fly is also positioned dead center on the opposite square end.

What is the minimum distance that the spider must walk on the surface of the box to reach the fly?