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