During a community recycling initiative, $800 is allocated to purchase bins. Each recycling bin costs $50, and the initiative plans to buy additional compost bins that cost $40 each. If the total number of bins purchased is 20, how many recycling bins were bought?