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