1.if he were my brother, I would have helped him.
2.if he had been my brother, I would have helped him.
Are both sentences correct? If so, then how?
I think it's a third conditional. unreal past condition-unreal past result. but for that we should use had been not "were". I saw first one in my textbook.