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