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