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