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