Some children shared some candy canes among themselves. They tried taking 10 candy canes each, but found that the last child had only 6 candy canes. When each child took 4 candy canes, there were 26 candy canes left over. How many candy canes were there in all?