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