Answer: 28 hours

Explanation: It takes 27 hours to climb 27 feet and in the next hour it climbs 3 feet and touches the top of the wall. So it takes 28 hours to touch the top of the wall for a snail.