Answer
a. linear function
b. nonlinear
Work Step by Step
To start with a, the graph is a straight line. An easy way to remember is that "linear" has line, so if the graph is a straight line, it is linear.
Then to b, it looks like a sine or cosine graph which is wavy shaped. So it is non linear since it does not follow a set rule.