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