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