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