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