Sexual problem

Patient: I’m a 28 year old male. I having trouble getting in the mood sexually and keeping it hard. I’m in the army and have deployed twice. I have put on 30lbs this year. I use to weigh 180 and now I’m 210. I’m 6 foot tall. Just went through a divorce. I want to know what I cam do or take to fix this problem. It’s never been an issue before