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