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