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