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