The figure below is a square pyramid where the height of the pyramid is 2 centimeters and the volume is 24 cubic centimeters. If the volume of a pyramid is v=1/3bh, then what is the length of the base?
A.2cm
B.4cm
C.6cm
D.8cm