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