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