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