Helen bought some guavas and star fruits in the ratio of 7 : 5. After selling 164 guavas and 95% of the star fruits, the ratio of the guavas to starfruits left became 2 : 3. How many fruits did Helen have in the end?