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