https://cdn2.hubspot.net/hub/209338/news/Ad_aerodynamics/index2.htm
Think one
To understand how the mainsail and the jib work together, it may be useful to think of them as one wing with a slot in the middle. The jib forms the front part of the wing (leading edge in aircraft terminology) and the mainsail forms the back part (trailing edge). The jib is the curved, smooth shaped front part of the wing, the main is the more straight, flat part. When you adjust the main sheet or traveler, you adjust the camber of the whole wing in a very smooth way, around the hinge that the mast forms.
When you keep in mind that pressure always acts perpendicular to the surface,
it is easy to see why the jib usually is in charge of most of the forward driving force, while the main causes most only heel. When sailing upwind most of the surface of the jib is oriented in the direction of the motion, while most of the surface of the main is oriented perpendicular to it, the leech often even pulling back.
But it would be wrong to think that the jib is more important for that. The mainsail is bending the air in front of the jib, allowing the boat to point higher than with the jib alone, and also helping the jib bear more loading without stalling.