A structure theorem on non-homogeneous linear equations in Hilbert spaces