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