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