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