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