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