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