If you had told me the truth, I would have believed you.
If you told me the truth, I would have believed you.
If he had worked harder, he'd have received a better grade.
If he worked harder, he'd have received a better grade.
Which one is currect past perfect or simple past in if condition.
What is the meaning of above sentences ?