I am trying to find the context free grammar for this equation
L = {a ᶦ b ʲ c ᵏ | i = j or i = k, i, j, k ≥ 0}
I have been able to work out the grammar for when a and b have equal exponent such as
S->ɛ
S->XY
S->ab
S->aXb
Y->cY | ɛ
but I am having troubles when I try to do when a and c have the same exponent, as the b now is on the way. Can someone give me some good hints or corrections?