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