A party rental company has chairs and tables for rent. The total cost to rent 3 chars and 2 tables is $20. The total cost to rent 8 chairs and 4 tables is $45. What is the cost to rent each chair and each table?