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