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