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