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