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