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