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