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