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