Intentionally murdering someone is a serious crime and gets the murderer 25 years to life in prison if convicted.
In some places murdering someone can even get you put on death row and have a death sentence where you'll sit on death row for 8 to 20 years before they execute you for the murder of someone.
Although I've heard of a few cases where someone only got a couple years in prison for intentionally running someone down with their vehicle and murdering them that way.
But it's very rare to get only 2 years in prison for murder as most people convicted of murder 25 years to the rest of their life in prison when convicted.