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