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