finding theta with two sides - Search