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