Dynamics of a system of rational third-order difference equation