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