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