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