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