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