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