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