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