Bill and Mary went to the farmers market to buy fruit for their lunch at school next week. Bill bought 5 apples. Mary bought 2 apples and spent $1.86 for a container of blue berries. If they spent equal amount at the market, write and solve an equation that will determine the cost of one apple.