how do i get rid of stomach ulcer

I keep having stomach pains and chest pains. The pains are constant.