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