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