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