We know that the area of the closet is 16 ft^2 and the length of the bathroom is 8 ft. Using the formula for the area of a rectangle, we have:
8ft * x = 16 ft^2. Dividing both sides by 8ft, we have x=2ft. So, x, the width of the bathroom, is 2 feet.
So, 2 feet is our answer.