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