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