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