Question: how do all three branches of government work together?
Answer: The legislative branch makes laws, but the President in the executive branch can veto those laws with a Presidential Veto.
The legislative branch makes laws, but the judicial branch can declare those laws unconstitutional.