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