Yesterday, a movie theater sold 301 bags of popcorn. a large bag of popcorn costs $3. a small bag of popcorn costs $1. in all, the movie theater made $509 from popcorn sales. write and solve a system of equations to find how many bags of each size of popcorn were sold.