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