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