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 3 t-shirts and 2 notebooks, and made $19. Club B sold 1 t-shirt and 1 notebook, for a total of $8.

A matrix with 2 rows and 2 columns, where row 1 is 3 and 2 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 19 and row 2 is 8.

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.