Would anyone be able help with the following question we have a disagreement in the family regarding the answer :

"

**Sam the spider is at a corner A of the room. Sam wants to reach the opposite corner B, crawling along the edges of the room and always going further away from A. How many different routes can Sam choose ?** "A diagram of a cuboid is provided where <A> is at the top left-hand corner in front face of the cuboid and <B> is at the bottom right-hand corner on the back-face. (I tried to insert a diagram here but was not successful).

Is there a set method for these sort of questions ?

Any help would greatly appreciated.

Thank you in advance