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