Call the number of rows x
\n" );
document.write( "Then the number of seats in each row is x+17 (it exceeds the number of rows by 17).
\n" );
document.write( "The total number of seats, 2184 = the number of rows times the number of seats per row, which is x(x+17).
\n" );
document.write( "x(x+17)=2184 (subtract 2184 from both sides and multiply what's inside the () by x)
\r
\n" );
document.write( "\n" );
document.write( "x&2 + 17x -2184 =0 (reverse foil )
\n" );
document.write( "(x+56)(x-39)=0 (solve each factor for x
\n" );
document.write( "x+56=0 (subtract 56 from both sides) x=-56. Throw it away because there can't be a negative number of rows.
\n" );
document.write( "x-39=0 (Add 39 to both sides.) x=39.\r
\n" );
document.write( "\n" );
document.write( "There are 39 rows, and 39+17 = 56 seats per row.
\n" );
document.write( "