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