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