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