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