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