In the K and M series the clip on plastic hoods typically fit several lenses. The appropriate lenses were printed on the side of the hood.
They actually come up fairly often here and on eBay. For instance, a member here (gofour3) just had 4 NOS hoods in the Marketplace to fit the K55/1.8 - that hood also fits all the K series 50's. The hood for the K28/2 and K28/3.5 also fits the K30 as we as all the K35's. Search the listings for 'Hood' or some such broad word in Titles Only.
The hood for the M50/1.4 also fits the M50/1.7 and M50/2. There are three - 2 screw-on and a clip on.
The product code is descriptive. The M28's take the PH-S49. PH = Plastic Hood; S = Square; 49 = 49mm (size of the filter ring). Interestingly, that appears to be also the specified hood for the M50/1.7.
In some cases (usually the 50's) there is a round hood as well as a square hood.
If you look at the lens descriptions on
Boz Dmitrov's K-mount Page the product number for the fitting clip-on plastic hood - you'll find the overlaps that way. Scroll down to 'Lens Data and Descriptions' and click on the red links.
You might take into account that the narrower Angle of View on an APSc sensor makes the legacy FF hoods shorter than they could be for best efficiency. Some users here, for instance, use a Takumar 135 screw-in hood or an inexpensive Chinese hood from eBay with 50mm lenses on Pentax dSLR's. For 35mm fllm, of course, you want the original.
You can make a 'Wanted' post in the Marketplace using the product numbers and descriptions. I think it likely you will have offers for all the hoods you need. You might also cross-post this message in the Film SLR Disucssion Forum and/or Lens Discussion Forum.