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