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