To find volume $ V $ use formula:
$$ V = \dfrac{ \sqrt{ 3 } \cdot a ^{ 2 } \cdot l }{ 4 } $$After substituting $a = 0.5\, \text{cm}$ and $l = 2.5\, \text{cm}$ we have:
$$ V =\dfrac{ \sqrt{ 3 } \cdot 0.5\, \text{cm} ^{ 2 } \cdot 2.5\, \text{cm} }{ 4 } $$$$ V = \dfrac{ 0.433\, \text{cm}^2 \cdot 2.5\, \text{cm} }{ 4 }$$$$ V = \dfrac{ 1.0825\, \text{cm}^3 }{ 4 } $$$$ V = 0.2706\, \text{cm}^3 $$