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