A boy started from one corner of a rectangular path and walks along the adjacent sides to reach opposite corner.

If he had walked through a shortest distance diagonally, he could have saved the distance equal to five-sixth of the shortest side a park, then what is the ratio of a longest side to the shortest side?