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