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