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