Synthesis for LTL and LDL on Finite Traces