First of all, we had best correct the labeling. The adjacent is the side making up the unknown angle, and the opposite is the side not making up the given angle (in this case, x)
So you have mixed up the opposite and the adjacent. You need to switch them.