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