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