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