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