Yes, even light rays can vary in wavelength and frequency, if the length of the ray is sorter, it becomes more energetic and has a higher frequency. If you're talking about a ray tracing diagram for lenses or mirrors, the length of the ray doesn't really matter unless you're finding the path length but there are some procedures for that too. Let me know if I missed what you were asking.
The answer to your question is "20kgx9.8m/s" because weight is the force an object is exerting on another object, and the formula used to calculate force is <em>Force = Mass * Acceleration</em>.