A word of length $30$ needs to be formed from the letters $x, y, z$ (repeatable) with the following conditions:
$y$ cannot occur more than once consecutively
$z$ cannot occur more than twice consecutively.
The question is how many such words are possible.
Thanks, Kiran