for the first one , leg 1 and leg 2 are of the same length since they have same base angles of 45 degrees . The hypotenuse is obtained by using the pythagoras theorem
for the second triangle, we can use sine 30 to obtain leg 1 and sine 60 to obtain leg 2