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