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