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