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