The problem is ambiguous, I'll provide 2 answers.
\n" );
document.write( "
\n" );
document.write( "Perhaps sloppy, but quickest for me (I'm assuming 8 is the numerator and 5x is the denominator):
\n" );
document.write( "multiply each expression by 10 (the largest denominator):
\n" );
document.write( "16/x - 1 = 2
\n" );
document.write( "add one to each side
\n" );
document.write( "16/x = 3
\n" );
document.write( "divide each side by 16
\n" );
document.write( "1/x = 3/16
\n" );
document.write( "cross multiply
\n" );
document.write( "(1 * 16, then divide by 3)
\n" );
document.write( "16/3 = 5 1/3
\n" );
document.write( "
\n" );
document.write( "Other, if 8/5 is the coefficient of x (if x is not in the denominator):
\n" );
document.write( "multiply each expression by 10 (the largest denominator):
\n" );
document.write( "16x - 1 = 2
\n" );
document.write( "add one to each side
\n" );
document.write( "16x = 3
\n" );
document.write( "divide each side by 16
\n" );
document.write( "x = 3/16
\n" );
document.write( "