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