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