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