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