A tank contains 40l of solution containing 2g of substance per liter. Salt water containing 3g of this substance per liter runs in at the rate of 4l/min and the well-stirred mixture runs out at the same rate. Find the amount of substance in the tank after 15minutes (in grams).