Grogg draws triangle ABC. Side BC is 4 inches shorter than side AB. and side AC is 6 inches longer than side BC. The perimeter of the triangle is 31 inches. What is the length of side AB?