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