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