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