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