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