Answer :

Volume= length x width x height

A cube has all the same sides so volume is =8 x 8 x 8 = 512 (I cant really explain it well but I hope it helps)