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