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