If the dimensions are 4cm by 6cm then the base area is 24 sq cm, what is the height? If the volume is 40.5 cu cm, then the height would have to be 1.6875 cm. Is that what you were given?
But if the height was 16.5cm then the volume would be 396 cu cm (16.5×24).