What is the missing dimension in this volume statement?

24cm3(3 squared)=3cm x____ cm x 4cm

2cm....

2cm x 4cm x3cm=24cm^3