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