What are the advantages of 15 and 30 year loan terms?

15-year:

Loan is usually made at a lower interest rate
Equity is built faster because early payments pay more principal

30-Year:

In the first 23 years of the loan, more interest is paid off than principal, meaning larger tax deductions
As inflation and costs of living increase, mortgage payments become a smaller part of overall expenses