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