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