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