The sum of the angles in a triangle is $180°, $ and we find that (180−106)+45+31+x=180°. We know this because vertical angles are equal, so the vertical angle to the angle of $x°$ is also equal to $x°.$
Now you can try to solve this equation yourself.