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