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