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