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