There are 6 baskets on the table. Each basket has 1, 12, 7, 16, 8 and 17 apples. Liam chose third, Matt chose first, John chose second, Olivia chose sixth, Emma chose fourth, and Sean chose fifth. How many apples did Matt and Liam choose in total?