An operation * is defined on the set of real numbers by a * b…