It takes the snail 10 days to reach 20 ft because if it loses 2 ft of the 4ft it climbs every day you can just calculate 20/2 and get 10 instead of 20/(4-2)
the snail will actually take 9days to reach the wall
hopefully this helped you
have a amazing nite or day