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