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