To model the situation, we can define two variables:
Let \( g \) be the number of gift cards given for excellent grades (worth $40 each), and let \( a \) be the number of gift cards given for perfect attendance (worth $25 each).
Based on the information given, we can write the following pair of linear equations:
- For the total number of students recognized, we have:
\[ g + a = 100 \]
- For the total cost of the gift cards, we have:
\[ 40g + 25a = 4000 \]
Thus, the pair of linear equations that model this situation is:
\[ \begin{align*}
- & \quad g + a = 100 \
- & \quad 40g + 25a = 4000 \end{align*} \]