I have a right triangle and in it area of yellow rectangle is equal with area of red triangle. How could prove that $\phi=45^{\circ}$?
$$\text{Area of Yellow Rectangle}=\text{Area of Red Triangle}$$
This problem has no additional information. I'm sorry for the inconvenience.
Update:
If we add some constraint to this problem like bellow, is it have a unique solution?
$$|FG|=x+y$$






Without additional information the angle $\varphi$ is not always $45^\circ$.
Let $x$ and $y$ be the sides of the rectangle and let $X$ and $Y$ be the legs of the right triangle. Then $xy=XY/2$ and $$\tan(\varphi)=\tan(\alpha-\beta)=\frac{\tan(\alpha)-\tan(\beta)}{1+\tan(\alpha)\tan(\beta)} \tag{*}$$ where $\tan(\alpha)=(y+Y)/x$ and $\tan(\beta)=y/(x+X)$.
Now let $x=1$, $y=2$, $X=2$ and $Y=2$. Then $xy=XY/2$ but by (*) $$\tan(\varphi)=10/11\not=1=\tan(45^\circ).$$
On the other hand, as remarked by Quanto, if $x=y$ i.e. the yellow rectangle is a square then by (*) $$\tan(\varphi)=1=\tan(45^\circ).$$