30 years in prison for man convicted of having gun used in murder