Hi Maggie, Welcome to English Forums. The short answer is: if they are long clauses, or if there are internal 'and's within any of the clauses, put a comma before the conjunction. If they are short and sweet, no comma is necessary.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
'Mr. Johnson said that he was lonely and afraid, and that if we did not help him, he would have to sell his coat to buy a new radio.'