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