If the square field measures 900 square meters, it must be equal on all sides. That means the length of one side alone would be equal to 900/4 which is 225.
You would first put 168 over 4 and simplify to get 42 over 1. Then you would divide 504 by 42 to get 12. You would have to drive 12 hours to get 504 miles.