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