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