An intermediary bought $\,x\,$ units of a commodity at a price of $\,€27\,\,$ and sold $\,y\,$ units at a price of $\,€37\,\,$ on $\,4$ April this year. In doing so, he made a profit of $\,€89\,\,$ earned.
The following task is given for this purpose: How much did he buy and sell on that day, if he buys a maximum of $\,50\,$ units every day?
Intuitively, I would say that this task can be solved with a linear Diophantine equation. $$ax+by= gcd(a,b)$$ and $$gcd(a,b)|c$$
$$27x+37y = c$$ But now I am at a loss as to which value is $\,c\,$ and how to proceed with $\,€89\,$ and $\,50$!