A party rental company has chairs and tables for rent. The total cost to rent 3 chairs and 5 tables is $39 . The total cost to rent 9 chairs and 7 tables is $63 . What is the cost to rent each chair and each table?