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