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