When a bakery opened this morning, the ratio of the number of pineapple muffins to the number of mango muffins was 3 : 2. After 244 pineapple muffins were sold, the ratio of the number of pineapple muffins to the number of mango muffins changed to 3 : 5. How many pineapple muffins were there when the bakery opened this morning?