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