(i) With justification, give an example of a ring R and a prime ideal A of R such that A is not a maximal ideal in R.
(ii) With justification, give an example of a ring R and a maximal ideal B of R such that B is not a prime ideal in R.
I know the definitions of Prime and Maximal ideals
Maximal ideal: Let R be a ring. A two-sided ideal I of R is called maximal if $I\neq R$ and no proper ideal of R properly contains I.
Prime ideal: Let R be a commutative ring. An ideal I of R is called prime if $I\neq R$ and whenever $ab \in I$ for elements $a$ and $b$ of R, either $a \in I$ or $b \in I$.