Volume = mass divided by density.
You are given the mass and density for the smaller cube so you can calculate it's volume:
Volume = 20 / 7.87 = 2.541 cubic cm's.
Now you are told the larger cube has 2 times the volume:
Volume of larger cube = 2.541 x 2 = 5.08 cubic cm's.