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