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