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