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