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