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