Julio bought tables and chairs for his restaurant. He bought 16 total items and spent $1800. Each table cost $150 and each chair cost $50. Let x represent the number of tables and y represent the number of chairs. How many tables and chairs did he buy?