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