Longview man sentenced to 40 years in 2010 fatal wreck