Chairs are on sale for $7 and tables are on sale for $40. If a store sold a totally of 30 of these items and collected $507, how much of each were sold?

Chairs are on sale for 7 and tables are on sale for 40 If a store sold a totally of 30 of these items and collected 507 how much of each were sold class=