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