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