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