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