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