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