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