mass*acceleration= force and here the force is gravity, downward, -mg and friction, (- because the force is always opposing the motion).

. The "terminal velocity" is when dv/dt= 0.

To find the "equation of motion" solve that equation for v and then solve to get the height as a function of t.