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