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