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