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