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