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