how can u tell if the triangle can be adjacent or opposite
You mean "adjacent and opposite SIDES".
Opposite side is the one opposite the known angle.
Adjacent side is the side forming the angle such as this: ∠(a)-the straight one labled "a", is adjacent.