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