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