Complex sentence: Two of the locomotives, 501 and 502, were purchased by the California Department of Transportation and renumbered 2051 and 2052, and received the Amtrak California paint scheme.
Split into simpler sentences: Two of the locomotives, 501 and 502, were sold to the California Department of Transportation. The locomotives renumbered 2051 and 2052, and received the Amtrak California paint scheme.