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