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