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