Differentiate y with respect to t using the product rule and chain rule, then substitute your expressions for y and y' back into the original ODE.

You should find everything dependent on A(t) cancels, leaving you with only g(t) and a term multiplied by A'(t). Rearrange to solve for A'(t).