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