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