The formula for volume of a rectangular prism is Area of the base (or in this case, top face) times the height.

So if the volume is which means .

So look for the option that has 3 inches as one of its dimensions, and see if the other two multiply together to give 54 (or if the three multiply to become 162).