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