A tank contains 500 liters of water in which 300 grams of corn sugar is dissolved. Freshwater is then pumped into the tank at a rate of 5 L/min. The well-mixed solution is pumped out at the same rate. Find the number of grams of corn sugar that is in the tank at time .