John is building a rectangular puppy kennel up against his house using 31 feet of fencing. The side against the house does not need a fence and the side parallel to his house needs to be 15 feet long. Write an equation that models the situation and solve for the length of one of the shorter sides that extend out from the house.