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