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