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