solve y = tan(x) and y = 2sin(x) for x