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