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