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