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