In 2023, as a resident of MD I worked as a permanent W-2 employee, then temp contractor W-2 in CA then 1099 in MA. where do I deduct travel costs? what state do I pay?