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