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