The first author studied the system of linear matrix equations and over a von Neumann regular ring with unity [Q. Wang, Acta Math. Sin., Engl. Ser. 21, No. 2, 323–334 (2005; Zbl 1083.15021)].
In this paper, the authors establish the formulas of the maximal and minimal ranks of the common solution of the linear matrix equations and over an arbitrary division ring. Corresponding results in some special cases are also given. As an application, necessary and sufficient conditions for the invariance of the rank of the common solution mentioned above are presented. Some previously known results can be regarded as special cases of the results in this paper.