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