How can I find X and Y in this diagram?

Given the figure of a cyclic quadrilateral
The sum of the opposite angles = 180
so, we can write the following equations:
[tex]\begin{gathered} x+100=180\rightarrow(1) \\ 2y+102=180\rightarrow(2) \end{gathered}[/tex]we will find (x) from equation (1):
x = 180 - 100 = 80
We will find (y) from equation (2):
2y = 180 - 102
2y = 78
y=78/2 = 39
So, the answer will be:
x = 80
y = 39