A hotel chain charges $80 each night for the first two nights and $50 for each additional night's stay. The total cost T is a function of the number of nights x that a guest stays.
a if 0 <=x<=2
b if x>2
(a) Find the expressions for a and b in the piecewise function defined above.