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