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