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