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