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