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