Solution:
Value of 100 shares = 40 x 100 = ₹4,000
Brokerage per share =
0.5100 x 40 = ₹0.20
Cost of one share = MV + Brokerage
= 40 + 0.20 = ₹40.20
Cost of 100 shares = 40.20 x 100 = ₹4020
Brokerage on 100 shares = ₹4020 - ₹4000 = ₹20
GST = 18100 x 20 = ₹3.60
Bashirkhan paid = 4020 + 3.60 = ₹4023.60