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