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