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