Jim needs to reach the gutters on his house which are 12 feet off the ground. If his ladder is 10 feet long, what is the maximum distance away from the house he can rest the base of the ladder?