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