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