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