A photograph has a length that is 2 inches longer than its width, x. So its area is given by the expression x(x+2) square inches. If the area of the photograph is 48 square inches, what is the width of the photograph?