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