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