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