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