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