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