19 apples and 39 papayas in a basket had a mass of 11.72kg. When 5 apples and all the papayas are taken out, the mass became 5.24kg. Each apple has a mass 3 times as much as each papaya. Find the mass of the basket when it is empty, in grams.
Adapted from: Learnlogy.com