A pencil box is in the shape of a right rectangular prism and filled with unit cubes as shown below. Each unit cube has a length of 1 centimeter (cm). What is the volume of the pencil box?
A - 20 square centimeters
B - 36 cubic centimeters
C - 240 square centimeters
D - 480 cubic centimeters