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