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