Retirement tax questions

Yes. My question is can I put 18 K towards a W2 employer towards 401k Plan while my wife puts 18K towards her W2 employer 401K plan in addition to 25% of my Sole Prop Profit towards my SEP IRA. Assuming that my Sole Prop NetProfit is 80 K and 25 % of that is 20k. My W2 employer is different than my Sole Prop and is different than my Spouse W2 employer.