Answer:
W = 9 inches.
Explanation:
The volume of a rectangular prism is given by

Where
w,h and l re width, height and length of rectangular prism
It is not mentioned that a box has a length of 18 inches and a height of 3 inches.
Using above formula.

So, the width of the box is 9 inches.