General solutions of some linear equations with variable coefficients