# Can you help the spider?

Written by Isha Chakraborty

Bio

Can you solve this question?

A spider is on the floor in one corner of the room. A fly settles in the diagonally opposite corner. The spider needs to take the shortest route to the fly, without walking on any part of the floor! How far does the spider have to walk?

You will find this puzzle difficult to solve if you continue to visualize in 3-D. Rather, you should make an attempt to reduce this to 2-D.To do this, unfold the walls and the celinig of the room and lay them out flat out (imagine that you are on the top of the celing watching from above and pulling all the walls upward):

The images shows the spider and the fly at two places because they are placed at corners (shared by two walls).
From the figure, it becomes clear that the spider will need to take the A-B in order to reach the fly (the shortest path possible between two points is the straight line connecting the two points).

AB is calculated using the Pythagoras theorem:

AB = Sqrt(23^2 + 26^2) = 34.71

Note that other possible paths are CB and AD. Can you check if these paths are longer than AB?