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