How do I go about this question?
We sold respectively $m$ and $n$ units of items A and B. Assume $m\ge 1$, and the price of each unit of A is $\$3$ more than the price of each unit of B. Assume a total of $12$ units of both items was sold, and the price of the total was $1320$. Use a Diophantine equation to determine the price and the number of each the items A and B sold.
Do we form two equations of the form $$ m(x+3) +n(x)=1320 $$ and $$ m+n=12$$ and then go from there? It would be really appreciated if someone could solve this question as I don't know much about Diophantine equations and have been racking my brains with this one.
Expand the first equation and group the $x$ terms together so that you can substitute $m+n=12$: $$ x(m+n)+3m =1320\\ 12x +3m =1320 $$ For each choice of integer $m$, there is a corresponding price $x$ and $x+3$ for the two items such that the constraints are satisfied, but we are looking only for integer solutions for $x$. Continue simplifying. $$ x=\frac{1320-3m}{12}\\ x=110-\frac{m}{4} $$ This means for any integer $m$ in the range $1\leq m\leq 12$, if(and only if) $m$ is divisible by 4, you get an integer solution for $x$. So you can pick from $3$ different values of $m$.
Alternatively, you could substitute $m=12-n$ in the first equation, and proceed as shown above.