From the question it is given that,
Tripathi invested ₹ $24,000$ and ₹ $30,000$ in buying ₹ $100$ at par shares of ‘Vam Organics’ and ‘Hero Honda’.
Then, total investment $=₹24,000+₹30,000=₹54,000$
So, number of shares of ‘VO’ = money invested/cost of one share
$=24,000/100$
$=240$
Number of shares of ‘HH’ = money invested/cost of one share
$=30,000/100$
$=300$
Now, dividend given by ‘V O’ $=12%=(12×24,000)/100=₹2,880$
Dividend given by ‘HH’$=15%=(15×30,000)/100=₹4,500$
Then, total dividend earned $=₹ 2,880+₹4,500$
$=₹7,380$
So, money earned by selling shares of ‘VO’ $=₹95×₹240$
$=₹22,800$
Money earned by selling shares of ‘HH’ $=₹90×₹300$
$=₹27,000$
Therefore, total money earned by selling shares $=₹22,800+₹27,000$
$=₹49,800$
Hence, total earnings = money earned by selling shares + dividends earned
$=₹49,800+₹7,380$
$=₹57,180$
Tripathi’s earnings from the transactions $=₹57,180–₹54,000$
$=₹3,180$