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