One thing you should notice is that the transverse line and the parallel line form a right triangle. We are told that the base is 4 and the angle between the hypotenuse and the leg is 45°
From this we can solve for the second leg. Here's the list of trig functions