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