The width of rectangle A is the sum of twice a number and 8. The length of the rectangle is 3 times as great as the width. If the perimeter is 96 feet, find the length and width.