(-8)^3 is the same as multiplying -8 by itself 3 times:
-8 x -8 x -8:
-8 x -8 = 64
64 x -8 = -512
(-8)^3 = -512