The volume of sand in the bag is equal to the integral of the dV/dt of the bag.or
dV = rdt
integral from V0 to 0 = integral from 0 to 20 min of -(100-3t)dt (I made the rate negative because Volume of sand is leaving the bag:
-V0 = -(100t - 3t2/2) from 0 to 20
V0 = 100(20) - 3/2 *202 = 1400 ml