How do you solve linear equation and quadratic equation of Domain and Range?