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