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