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