In a school gym, the ratio of the number of boys to the number of girls was 4:3. After 160 boys left the gym, the ratio became 4:5. How many girls were there in the gym?