Longview man gets 40 years on multiple charges