From the question it is given that,
Number of shares
Then, nominal value of each share
So, investment by Mahesh = ₹
= ₹
Mahesh sold shares at premium
Market value of a share with premium
Then, value of shares
Shares sold at discount
Then, market value of a share with discount
Value of shares
By adding value of shares and value of shares we get the total money received by selling his shares,
Difference in selling price and cost price
Therefore, Mahesh gained