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