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