This is a Second Conditional sentence, used for a hypothetical or unlikely situation.
Structure:
If + Past Simple, would + base verb
Example:
If James had enough money, he would buy a new car next year.
Comparison
If James has enough money, he will buy a new car next year. → Real possibility (First Conditional)
If James had enough money, he would buy a new car next year. → Hypothetical/unlikely situation (Second Conditional)