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