So a general harmonic equation is Asin(2πt/T). Little t is just a variable. 6 inches is the height of one maximum and one minimum from equilibrium, so that is the amplitude A. T is the period, or the time of one cycle (or wavelength), which is 2 seconds.
The equation is therefore (in terms of seconds and inches), 6*sin(2πt/2), or 6*sin(πt).
The answer is the third one: 32 inches
We have two points so we can find the gradient using y1-y2/x1-x2
gradient = 21-27/2-8
= 1
we know the form for any linear equation is y = mx + c
we have m and a point so we can substitute in point (2,21) to find c
21 = 1 x 2 + c
c = 19
therefore, the equation is y = x + 19