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