The person is suffering from stable angina. In this condition, there is a pain in the chest during exertion and the pain disappears with rest. The pain usually lasts for short time and disappears on rest or using angina medication. It is caused due to the reduced blood flow to the heart.