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