Just to expand on what OPNLguy said. If you have a true airspeed (TAS) through the air of 300 mph, and the wind is calm, then your speed over the ground (Groundspeed) will also be 300 mph. However, if you're flying with a TAS of 300 mph into a headwind of 50 mph, then your Groundspeed (GS) will only be 250 mph. (thus making your flight take longer). Likewise, if you're flying with a TAS of 300 mph, and you have a tailwind of 50 mph, your GS will be 350 mph. (thus making your flight shorter).
The shorter your flight...the less fuel you burn, plus you arrive sooner! That's why pilots LOVE tailwinds
and HATE headwinds.