Use the Rational Zero Theorem to list all possible rational…