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