In the given circle with diameter AB, find the value of x.