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