Answer:
----------------
The longest straight line is the line connecting the two opposite corners.
This is a diagonal of the rectangle.
Use Pythagorean theorem to find the length of the diagonal, the hypotenuse of the triangle with legs 20 in and 15 in:
Hence the longest straight line is 25 in long.