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