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