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