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