According to the ideal gas law, the pressure (P) of a gas is directly proportional to its temperature (T) and inversely proportional to its volume (V). This relationship can be expressed as P = nRT/V, where n represents the number of moles of gas and R is the ideal gas constant.
When a balloon is heated, the temperature of the air inside the balloon increases. This causes the pressure of the air inside the balloon to increase as well. As a result, the balloon expands in volume to accommodate the increased pressure. However, the mass of the air inside the balloon remains the same.