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