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