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