Please help me with these word problems! All i need is the equation, I will be able to solve the rest but I just cannot get the equations!

1. In an office building, a room contains 54 chairs. The number of chairs per row is three less than twice the number of rows. Find the number of rows and the number of chairs per row.

2. The area of a triangle is 51 square inches. One side of the triangle is one inch less than three times the length of the altitude to that side. Find the length of that side and the length of the altitude to that side.