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