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