Samantha moved out of her house and sold some tables and chairs. She sold 30 chairs and tables and made a total of 1640. If each chair sold for $50 and each table for $60, how many chairs and how many tables did Samantha sell?