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