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