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