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