Modules of polynomial Rota-Baxter Algebras and matrix equations