Let the length of the rectangle be \( l \) and the breadth be \( b \). We are given the following:
- The length of the diagonal is 25 m. By Pythagoras’ theorem, we know:
\[
l^2 + b^2 = 25^2 = 625
\]
- The area of the rectangle is 168 m\(^2\), so:
\[
l \times b = 168
\]
Now, we have two equations:
1. \( l^2 + b^2 = 625 \)
2. \( l \times b = 168 \)
To solve for \( l \) and \( b \), we use substitution or the quadratic method. Let’s substitute \( l = \frac{168}{b} \) into the first equation:
\[
\left( \frac{168}{b} \right)^2 + b^2 = 625
\]
Simplifying:
\[
\frac{28224}{b^2} + b^2 = 625
\]
Multiply through by \( b^2 \):
\[
28224 + b^4 = 625b^2
\]
Let \( x = b^2 \), then:
\[
28224 + x^2 = 625x
\]
Rearranging:
\[
x^2 - 625x + 28224 = 0
\]
Now solving this quadratic equation for \( x \) gives \( x = 24 \). Therefore, \( b = 24 \).
So, the longer side of the rectangle is \( \boxed{24 \, \text{m}} \).