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