Total Investment of Virat = ₹36000
Nominal Value of Virat's shares = ₹40
As, Virat buys shares at 20% discount, Market Value of Virat's shares
$$\begin{aligned}= ₹40 - 20% \text{ of } ₹40 \\[0.5em] = ₹40 - ₹\Big(\frac{20}{100} \times 40 \Big) \\[0.5em] = ₹40 - ₹8 \\[0.5em] = ₹32\end{aligned}$$
No. of shares purchased by Virat
$$\begin{aligned}= \frac{36000}{32} \\[0.5em] = 1125\end{aligned}$$
Rate of Dividend of Virat's shares = 15%
Annual Dividend = No. of shares x Rate of Dividend x Nominal Value per share
Annual Dividend of Virat
$$\begin{aligned}= 1125 \times \frac{15}{100} \times 40 \\[0.5em] = ₹6750\end{aligned}$$
Let rate percent of the dividend declared by Dhoni's company be r%
Total Investment of Dhoni = ₹36000
Nominal Value of Dhoni's shares = ₹75
As, Dhoni buys shares at 20% premium, Market Value of Dhoni's shares
$$\begin{aligned}= ₹75 + 20% \text{ of } ₹75 \\[0.5em] = ₹75 + ₹\Big(\frac{20}{100} \times 75 \Big) \\[0.5em] = ₹75 + ₹15 \\[0.5em] = ₹90\end{aligned}$$
No. of shares purchased by Dhoni
$$\begin{aligned}= \frac{36000}{90} \\[0.5em] = 400\end{aligned}$$
Annual Dividend of Dhoni
$$\begin{aligned}= 400 \times \frac{r}{100} \times 75 \\[0.5em] = ₹300r\end{aligned}$$
As both Dhoni and Virat receive equal dividends,
$$\begin{aligned}\therefore 300r = 6750 \\[0.5em] \Rightarrow r = \frac{6750}{300} \\[0.5em] \Rightarrow r = 22.5\end{aligned}$$
∴ Rate percent of the dividend declared by Dhoni's company = 22.5%