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