Write each of the following statements as a mathematical expression. State whether the expression is linear or nonlinear.

a. Eleven subtracted from 3 times a number, and then the difference added to sixteen times a number.
b. Half of the sum of three and a number multiplied by itself two times.