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