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