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