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