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