The measure of angle E, the angle of elevation from point A to point B, is 5(x-2). The measure of angle D, the angle of depression from point B to point A, is (x+14). Find the measure of each angle.