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