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