Answer:
Option B.) 3 inches
Step-by-step explanation:
Let us first express some principles that we can use to solve our problem. Generally, the Volume of a Box is given by:

where
: is the volume
: is the height
: is the width
: is the length
Now we know that:
Volume of Box A (
) is Equal to Volume of Box B (
) so we have:

So now we can find the Length (
) of Box B easily, as we now the volume along with the height and the width, as follow:

So the Length of Box B is 3 inches, thus Option B. is correct.