2016 AIME I Problem 9

Triangle A B C has A B=40, A C=31, and \sin A=\frac{1}{5}. This triangle is inscribed in rectangle A Q R S with B on \overline{Q R} and C on \overline{R S}. Find the maximum possible area of A Q R S.