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