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