The ratio of the number of apples to the number of pears in a basket was 3:5. After 7more apples were added to the basket and 9 pears were removed ,there were an equal number of apples and pears .how many apples and how many pears were originally in the basket