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