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