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