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