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