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