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