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