At Market X, apples cost $0.70 each and bananas cost $0.40 each. At Market Y, apples cost $0.80 each and bananas cost $0.50 each. A fruit purchase consisting of a certain number of apples and bananas costs $6.20 at Market X and $7.30 at Market Y. How many apples were purchased?
5
6
7
8