The obvious answer is, of course, that the bug crawls straight up to the ceiling, straight across the ceiling, and down the opposite wall, for a total distance of 1+30+11 = 42 ft. Taking a clue from the previous problem, however, and by judicious cutting along edges and flattening, we arrive at a straight line distance that, when refolding takes place, gives rise to a broken-line path that touches five of the six sides of the room. While there are many ways to perform the cutting, the best is as follows: First cut along three of the edges of each square wall, in such a way that the bug's starting and ending points are closest to the uncut edge on each of the respective walls. Next cut along just one of the long edges and fold out flat. You'll find that the straight line between the two end points of the bug's trip does not cross any of the cuts you made, and it is the hypotenuse of a right triangle with side lengths 24 ft. and 32 ft. Hence the shortest path has length (242 +322)1/2 = 40 ft.