A rectangle is three times as long as it is wide. If the total area of the rectangle is 48 square inches, what is the length of the rectangle?