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