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