Yes, you already have a right angle triangle you can get the lengths for in terms of theta, and if you cut it so you can get a rectangle on the bottom and a triangle on the top you can evaluate those lengths in terms of theta as well. Then x should drop out.