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