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