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