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