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