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