Brownwood man sentenced to 40 years for robbery, kidnapping