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