Those were probably 22R 5W vitreous enamel coated resistors, and being mounted right next to each other they got hot, and then the glaze became conductive and then passed mains from one to the other, leading to destruction. Replacing with 10R NTC insush limiting disc thermistors will work well, and as well, replace all 3 capacitors on the power input side, those X2 and Y capacitors are crazing, so they have either failed short circuit ( which would have caused the resistors to overheat rather spectacularly) or will do so soon after you put power on the board.
As well replace that small electrolytic capacitor by the optoisolator, it will be suspect as well, after having had a hot life with high ripple current through it, and as it provides the power fail warning for the Z80 processor allowing it to save the data to the SRAM replacing it will save you lots of odd restarts.
Just wondering what this is, Z80 in a classic minimal configuration, battery backed SRAM ( watch that NiCd battery for leaks, it gets nasty), 6 digits of common anode BCD displays, 8 relay outputs. Looks like from the firmware it is a back gauge, something to do with a sheet metal brake or cutter, or at least that is the only result for the exact number.