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