That's the very end of One's solo , right?
In the first one ,I use the first finger only which is the index to fret the 15's... It's kinda bluesy bend, less than a half step bend + some vibrato... Should be easy.
In the second one, you don't release the bend into the 18th fret (f-note) again... you mute it after the pitch reaches the g-note (20th fret on b-string) , then play it's unison which is 15th fret one e-string.
For the fretting , use the same fingering "Azrael" mentioned ... you can also support your ring (bending) finger with you middle finger , just to make the bend easier for you...
You'll realy need support if you're into 8 frets (4 whole steps) bending like me . :D