Given,
C.P. of 21 article = S.P of 18 articles
Let, C.P of 21 articles=x
CP of 1 article=x21
SP of 18 articles=x
SP of 1 article=x18
since x/21<x/18,
⇒there is a gain
∵gain
=SP−CP
=x/18−x/21
=(7x−6x)/126
=x/126
gain%=gainCP×100
=(x/126÷x/21)×100
=(x/126×21/x)×100
=100/6
=50/3
Hence, Gain %=16.66%