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