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