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