We are given a right triangle that has angles of 45°-45°-90°. This would indicate that the triangle is an isosceles type. We can use some trigonemetric functions to solve for the other legs. We do as follows:
sin 45 = p / 10
p = 5√2
cos 45 = q /10
q = 5√2
Hope this answers the question. Have a nice day.