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