In a trapezoid, the smaller base is 3 more than the height, the larger base is 5 less than 3 times the height, and the area is 45 square centimeters. Find the height in centimeters. Use an algebraic solution.