I hope it's valid to ask for "a more neat solution" of a problem on this network, despite the fact that I don't have a strict definition of the word "neat".
Here is the square and the right triangle inscribed in it.
I did the following: $$AC = Ah + hB$$ $$4\sin\theta = 4\cos\theta + 3\sin\theta$$ So $$\tan\theta = 4$$ But $$\sin\theta = \frac{\tan\theta}{\sqrt{1+\tan^2\theta}}$$ Therefore $$AC = 4\sin\theta = \frac{16}{\sqrt {17}}$$ $$\text{Area} = \left(\frac{16}{\sqrt {17}}\right)^2$$