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