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