futureTP:
Trigonometry. Crosswind component is the SIN of the angle off the runway multiplied by the wind strength. Headwind component is the COS of the angle off the runway multiplied by the wind strength.
In your example: SIN60 = 0.866 * 20kts = 17.3kts crosswind.