Olivia bought severa apples at 20 cents each, ate two of them, and sold the rest for 30 cents each. she made a profit of $2.20. how many did she buy?