A basket with 12 apples has a mass of 3,105 grams.  The same basket with 7 apples has a mass of 1,980 grams.  Each apple has the same mass.  What is the mass of the basket?