Note: The same is true independent if the big triangle has a $90^\circ$ angle or not, or even if it is a triangle. All you need is the tilted line and the horizontal.
Let's have the points $A$ and $B$ where you have the labels for the angles
Extend the perpendicular to the tilted line until it intersects the horizontal. Call this $C$. Also, draw the vertical line from $B$. The intersection with $AC$ is $D$. Since angle $B$ and angle $\angle CBD$ are formed by the same lines and are opposite, you have $\angle B=\angle CBD$. The $CBD$ triangle has the angle at $D$ at $90^\circ$, so $\angle BCD=90^\circ-\angle B$. $ABC$ triangle is also a right angle triangle (at $B$), so $\angle A=90^\circ-\angle BCA=90^\circ-(90^\circ-\angle B)=\angle B$.