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