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