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