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