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