Beeps after pressing the power botton
OK, take the RAM out, and boot again. Does it have the same pattern? If yes, then it is not the RAM! Check out the beep codes here, they will tell you what is wrong with your hardware!
Because you have not mentioned your specific hardware, go ahead and find it on this matrix, and see what is wrong! https://support.hp.com/us-en/document/bph07107