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