A retail store owner buys 300 cups from a manufacturer. The retail store owner pays a flat delivery fee of $50 in addition to $2
for each cup delivered. If a cup is scratched upon delivery, the manufacturer provides a refund of $1 per scratched cup. If the store owner pays the manufacturer $584 for the 300 cups, how many scratched cups are there?