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