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