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