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