solve the folling equation using grammars 2x+4y+z=9