Two student clubs were selling t-shirts and school notebooks to raise money for an upcoming school event. In the first few minutes, club A sold 2 t-shirts and 3 notebooks, and made $40. Club B sold 1 t-shirt and 1 notebook, for a total of $16.

A matrix with 2 rows and 2 columns, where row 1 is 2 and 3 and row 2 is 1 and 1, is multiplied by matrix with 2 rows and 1 column, where row 1 is x and row 2 is y, equals a matrix with 2 rows and 1 column, where row 1 is 40 and row 2 is 16.

Use matrices to solve the equation and determine the cost of a t-shirt and the cost of a notebook. Show or explain all necessary steps.