Find the measure of x, then find the measure of each angle

First, you have to imagine that you cut the upper triangle. If you do that, then this is how the inner angles are added to 180°:
180° = 90° + (x/2) + (7x - 90°)
180° = x/2 + 7x
180° = x *(1/2 + 7)
180° = x*(15/2)
2/15 * 180° = x
24 = x
Angle A:
A= x/2
A = 24/2
A = 12°
Angle B:
B = 7x
B = 7*24
B = 168°
The two bottom angles are both worth 90°.