Help please. I have the answer but I don't understand how to get there!

Step-by-step explanation:
A good way to do this question is to think about the units.
sides are in cm. Volume is in cubic centimeters.
cm sides: A:B = 2:8 = 1:4.
So, the volume is in ratio 1 cubed : 4 cubed = 1:64.
So the volume of B is 64 * 7 = 448 cubic centimeters.
Is this the answer. If so, please mark brainliest. It really helps.