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