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