Analytical solutions of some general classes of differential and integral equations by using the Laplace and Fourier transforms