Answer
The answer is below.
Work Step by Step
The federal government gets most of its money from income taxes and spends most of it on social security (which has slightly higher spending than medicare/medicaid). State governments spend most of their money on welfare programs and get most of it from taxes (which type of tax depends on the state).