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