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