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