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