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