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