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