Martha made 3 fruit pies. She used 3 green apples and 15 red apples divided evenly among all the pie. How many apples were in each pie?