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