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