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