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