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