The two triangles are similar. Set up a proportion comparing the heights of the poles, 10 and h, and the lengths of the shadows, 8 and 12.