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