Consider two triangles $\triangle abc$ and $\triangle def$ such that $ab=de$ and $ac=df$.Also area of $\triangle abc$ is equal to area of $\triangle def$.Now draw $cm$ perpendicular to $ab$ and $fn$ perpendicular to $de$.$ab$ and $de$ are equal and area of triangles is also equal so $cm$ should be equal to $fn$.Now $\triangle amc$ and$\triangle dnf$ are congruent by right angle triangle congruence(since hypoteneous $ac$ and $df$ are equal).therefore $\angle bac$ is equal to $\angle edf$.Now in $\triangle abc$ and $\triangle def$ by SAS both $\triangle abc$ and $\triangle def$ are congruent so $bc=ef$.I don't know where i am wrong.
edit:Please read my proof and point out what's wrong

Consider sweeping side ab away from ac so angle bac increases from zero to $\pi$ When bac is zero, the area is zero. It increases with angle bac for a while, but when the angle gets to $\pi$ the area is back to zero again. There is some angle bac where the area is maximized. For lower area, there must (by the intermediate value theorem) be one angle bac below the one that makes maximum area and one above it.