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