At a school fundraiser, bracelets cost $2 each and necklaces cost $5 each. The equation
2x+5y=50
represents the total amount of money, in dollars, collected from selling x bracelets and y necklaces. If 4 necklaces are sold, how many bracelets are sold?