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