On buying a pen, the shopkeeper gives three refills free. On buying a pen and six refills, the shopkeeper gives additional four refills free. If the equivalent discount is the same in both cases, then how many refills will be equal in value to a pen?
The solution provided for this problem is as follows :-
Let the cost of pen be $p$ and that of refill be $r$.
Then $\frac{3r}{p}=\frac{4r}{p+6r} \Rightarrow p=18r$
I am not able to understand how did the first fraction relation came up. Please help me understand that.
Thanks in advance !!!