The line 'd' separates the square into two triangles. Since the side lengths are equal, the angle is 45°. We need the line separating the two 90° angles, that I am going to define as 'z'. We can use the sine function.
z = 5
To solve for x, we can use sine again but for the 30 degree angle.