Notice that angles G and the third angle (let's call it x) from triangle ABX lay in the same straight line.
This way,

Now, we know that angles A and D add up to 90°. This way,

We also know that the sum of the interior angles of a triangle is 180.
Therefore,

Solving for B we get:

Angle B measures 42°.
Answer: B. 42°