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