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