how did california and texas solve their issue of slavery

California and Texas both resolved their issues with slavery through different processes.

In the case of California, slavery was never officially legalized in the state. When California joined the Union as part of the Compromise of 1850, it came in as a free state. The Compromise, proposed by Senator Henry Clay, stated that California would be admitted as a free state, while other provisions addressed the ongoing controversial issues of slavery in the territories. Therefore, slavery was effectively prohibited in California from the beginning.

Texas, on the other hand, had slavery in place prior to becoming an independent republic and later joining the United States. Slavery was widely practiced in the state during its time as a territory of Mexico as well. When Texas joined the Union in 1845, it was admitted as a slave state, which subsequently fueled tensions over the expansion of slavery.

The issue of slavery further escalated during the American Civil War. After the Confederacy's defeat, slavery was officially abolished in Texas and throughout the rest of the United States with the ratification of the 13th Amendment to the U.S. Constitution in December 1865. This marked the end of slavery in Texas and ensured that the state and its residents were subject to the same laws and regulations regarding slavery as the rest of the country.