As Robbie's answer implies, the answer is wind - Trade Winds govern what happens on or near the surface and were historically important for sailing ships, and today in aviation we deal with the the Winds Aloft at whatever altitude your plane is flying.
As an example, consider two hypothetical flights at 30,000 feet with the winds shown below:
With these winds a flight from A to B (East-to-West) will be fighting headwinds the whole way. My handy flight planning program tells me that at 500 knots (airspeed) you'd be in the air for about 5 hours 30 minutes.
Traveling in the opposite direction from B to A you'd have a tailwind, and with the same 500 knot airspeed you would make the trip in roughly 4 hours.
The winds aloft at higher altitudes are fairly consistent in speed and direction (there are seasonal variationsvary seasonally, butwhich can affect flight times for summer versus winter trips. According to one of our folks who is regularly up at those altitudes even the most part as far as jet trafficdaily variations can be noticeable, and passengers are concernedmay make the time differences baseddifference between being able to make a nonstop trip or having to stop for fuel on direction of flight are pretty consistent)the way.
Pilots and flight dispatchers will often review the wind data prior to flight and try to select an altitude that affords a "good ride" (free of turbulence) and favorable winds (either a tailwind or the lowest headwind they can find).