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