1 short beep & 1 long beep on HP/Compaq systems is almost always a RAM problem.
Try re-seating the RAM modules in case it's bad connectivity between the slots & the edge-connectors.
If no change, try new RAM as existing modules may have become faulty (not at all unusual as they age).