Need explanation to this exercise Given d =50 degrees, Find g?

Given:
[tex]d=50^o[/tex]x and y are parallel.
Required:
We need to find the measure of angle g.
Explanation:
[tex]g^o\text{ and }e^o\text{ are corresponding angles since x and y are parallel.}[/tex]We know that the corresponding angles are equal.
[tex]g^o=e^o[/tex][tex]d^o\text{ and }e^o\text{ are supplementary angles since }d^o\text{ and }e^o\text{ are linear pair.}[/tex]We know that the sum of the supplementary angles is 18- degrees.
[tex]d^o+e^o=180^o[/tex][tex]Replace\text{ }e^o=g^o\text{ in the equation.}[/tex][tex]d^o+g^o=180^o[/tex][tex]Substitute\text{ }d^o=50^o\text{ in the equation.}[/tex][tex]50^o+g^o=180^o[/tex]Subtract 50 degrees from both sides of the equation.
[tex]50^o+g^o-50^o=180^o-50^o[/tex][tex]g^o=130^o[/tex]Final answer:
[tex]g^o=130^o[/tex]