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