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