A tabela a seguir exibe as quantidades em miligramas (mg) de duas substâncias \mathbf{A} e \mathbf{B} presentes em cada grama de três medicamentos \mathbf{M_1}, \mathbf{M_2} e \mathbf{M_3}. O custo por grama dos medicamentos figura na última coluna. Sabe-se que um tratamento eficaz necessita de 13mg da substancia \mathbf{A} e 9mg da substancia \mathbf{B}.
\begin{array}{|c|c|c|c|} \hline & \textbf{A} & \textbf{B} & \text{Custo/g} \\ \hline \mathbf{M_1} & \text{1mg} & \text{2mg} & \text{R\$ 9,00} \\ \hline \mathbf{M_2} & \text{3mg} & \text{1mg} & \text{R\$ 5,00} \\ \hline \mathbf{M_3} & \text{2mg} & \text{2mg} & \text{R\$ 7,00} \\ \hline \end{array}O quanto de cada medicamento se deve empregar para garantir um tratamento eficaz a um custo de R$40,00?