Hey, its very simple !
when altitude increases, the temperature decreases.
but when altitude increases,pressure also increases.
thus temperature and pressure are inversely proportional
1 4 1
If in a place there will be more temperature then the air pressure will also increase. That's because the more the hot the weather will be the more the air will get warm.By this warm air a low pressure will be formed.And when there is less temperature the air will be cool and there is a high pressure on the surface.Also in low pressure areas it is wet and humid and high temperature and in low pressure areas it is cool and normal temperature.