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