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