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