Answer:
Both are related to each other.
Explanation:
Spoils system is a type of system in which the political party winning an election rewards its active supporters by appointment to government posts and with some other favour. This spoils system ended by the Pendleton Act. The Pendleton Act is a federal law passed by the government in 1883 by establishing the United States Civil Service Commission. It ended the spoils system of political patronage and established hiring civil servants on the basis of merit.