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