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