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