I think the first red comma should be deleted. It should read: I had a hard time dealing with the housing development, trying to solve my rental problem. Hope this helps!
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.