A spider is sitting in the middle of one of the smallest walls in my living room, and a fly is resting by the side of the window to on the opposite wall, 2 m above the floor and 0.5 m from the adjacent wall. The room is 8 m long, 4 m wide and 3 m high. What is the shortest distance the spider could crawl to reach the fly?