SPSS coding question

Hi everyone. I'm a little confused as to how I'm supposed to recode a specific item based on the coding of the item proceding it using SPSS. I've attached the specific case I'm referring to to this post - it's Item 8 from the SF-36 health survey. Any help would be greatly appreciated, thanks.