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