Determine the type of the following grammars into the Chomsky Hierarchy
(e.g. Type-0, Type-1, Type-2 and Type-3).
4.)
G=({x,y}, {C,A,B,S}, S, P),
P={S::=Cx, S::=Cy, S::=By, S::=Ax, S::=x, S::=y, A::=Ax, A::=Cx,
A::=x,
B::=By, B::=yA, C::=xA}
5.)
G=({a,b,c}, {S,B}, S, P),
P={S::=abc, S::=aBSc, Ba::=aB, Bb::=bb}