The average price per share is the weighted mean of the prices, with the numbers of shares as weights.
(i) Shreyas: 25 shares at ₹150 and 10 shares at ₹30.
Average price=25+1025×150+10×30=353,750+300=354,050=7810≈115.71
His average price per share is about ₹115.71.
(ii) Let Vaishnavi buy x shares at ₹30.
5+x5×150+30x=70
750+30x=70(5+x)=350+70x
750−350=70x−30x⟹400=40x⟹x=10
Check: 15750+300=151,050=70. Vaishnavi bought 10 shares.
Notice that buying the same 10 cheap shares pulled Vaishnavi's average down much more than Shreyas's (to ₹70 instead of ₹115.71), because she held only 5 shares before, so the new shares carry a much larger weight.