how to find the value of both angles