The height of a right rectangular prism is three times the width of the base. The length of the base is twice the width.

A rectangular prism is shown. The rectangular bases have side lengths of 2 and 2 w. The height of the prism is 3 w.

Which expression represents the volume of the prism in terms of w, the width of the base?

5w2 cubic units
6w2 cubic units
5w3 cubic units
6w3 cubic units.