Then 7k-50d=36.
5k-40d=0
Then d=0. 125k.
Substituting into the first formula gives 0.75k=36.
k=48
So there are 336 watermelons.