Note that cos 25 degrees makes use of "x" and "120 m:"
cos 25 degrees = x / (120 m)
Multiplying both sides by 120 m results in "x = (120 m)*cos (25 degrees)