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