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