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