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