2. A trading company purchases a certain type of fruit at a cost of 20 yuan per kilogram. After market research, it is found that the selling price $p$ (yuan per kilogram) of this fruit over the next 48 days is related to time $t$ (days) by the function
$$
p=\frac{1}{4} t+30(1 \leqslant t \leqslant 48, t \in \mathbf{Z}),
$$

and the daily sales volume $y$ (kilograms) is related to time $t$ (days) by the function
$$
y=120-2 t(1 \leqslant t \leqslant 48, t \in \mathbf{Z}) \text {. }
$$

In the first 30 days of actual sales, the company decides to donate $n$ yuan of profit for every kilogram of fruit sold to a "targeted poverty alleviation" program. It is observed that: in the sales process over the first 30 days, only in the first 28 days, the daily sales profit $W$ (yuan) after deducting the donation increases with the increase in time $t$ (days). Then the range of values for $n$ is
$$
\text { 2. 8. } 75<n \leqslant 9.25 \text {. }
$$

According to the problem, we have
$$
\begin{array}{l}
W=(p-20-n) y \\
=\left(\frac{1}{4} t+30-20-n\right)(120-2 t) \\
=-\frac{1}{2} t^{2}+2(n+5) t+120(10-n),
\end{array}
$$

The axis of symmetry is $t=2 n+10$.
From the problem, we know
$$
\begin{array}{l}
27.5<2 n+10 \leqslant 28.5 \\
\Rightarrow 8.75<n \leqslant 9.25 .
\end{array}
$$