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