The work with a K50 is pretty straight forward and doing it with both K50's at the same time makes it of course a bit quicker.
But I strongly recommend to print out the fotos of every side of the K50 for the location of the screws.
But then just pinch 2 x 2mm holes instead of one so you can stick the screws in there for both bodies.
Any of those usually have 2 solenoids:
ist*-D ist*DS ist*DS2 Samsung GX1 Samsung GX1s
ist*DL ist*DL2 Samsung GX1L
K100D K110D K200D
K-m/2000, K-x, K-r (but sometimes those have 1 green solenoid in the flash compartment)
those have just one:
K10D Samsung GX10; K20D Samsung GX20
My no means use a SLR solenoid, which looks quite similar but has a different holding force (MZ50 etc)
Some dealers on ebay Germany and ebay UK offer these but won't tell.
I had to re-repair a few of those cameras because the buyer purchased from ebay Germany and had bad results. Ebay Germany is not be mixed up with "ebay Kleinanzeigen" in Germany!
Those bodies are getting a bit harder to find these days because now it is known of their valuable "guts"
So the only other option in USA is ebay.com, just search for genuine solenoid Pentax there and you'll find it.
The price is quite o.k. because those solenoids seem to come from an ex-repair-shop and it is very difficult to get them NOS (New Old Stock).
Only some shops in Japan have them but only if you visit there directly and then not much cheaper either.
Not to worry about shuttercount of a donor camera! Those Japan-Solenoids last longer than the camera.
In the K30 of one of my sons I installed a K10D solenoid from a K10D with 46000 actuations!
The K30 had some 3000 then, now it is near 14,500 and works perfect.
I know of some K10D's and K20D's with much higher shuttercount and they still work very well.
Time for the actual repair when tools and good light are ready:
I do it within 20min
My first one was about 1 hour
Soldering is not that difficult but have some very thin solder and a thin tip!
Old type leaded solder works better than silver-solder.
I use solder without resin, because I use a tube of honey-like resin, place a tiny bit of that onto the wire or pin of the solenoid,
Then some solder on the tip of the soldering-iron (it won't fume as no resin).
That makes soldering very easy. I am older, my eye-sigth is not anymore as it used to be, sometimes my hands shake a bit,
but I find it pretty easy.
But don't forget the flash-condensor!
The danger to get a shock there if you don't discharge it is a 1001 x times higher than faint-hearted warnings of socalled specialists in this thread:
Modify vacuum-cleaner for safe dust-cleaning your Pentax (anti-static ESD) - PentaxForums.com