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