To do this type of problem, it is important that you have a sound understanding of dimensional analysis. Learn it well now, because it will be a cardinal concept in almost every science course you take.
I will walk you through this problem, since it is relatively simple.
1) Find the volume of the cuboid:
(1.5 km^3) x (1000m/1km) x (1000m/1km) x (1000m/1km) = 1.5e9 m^3
2) It is given that there are 25 worms per cubic meter of soil, so simply multiply:
(25 worms) x (1.5e9 m^3) = 3.75 x 10^10 worms