You are solving a system of two equations using substitution. When…