Let ABC be the right angled triangle with right angle at A.
AB is the base, AC is the height and BC is the hypotenuse.
As the difference between the base and height is 3cm, let AB =xcm and AC =(x+3)cm
Area of triangle =12×base×height=54 sq cm
12×x×(x+3)=54
=>x2+3x=108
x2+12x−9x−(12×9)=0
Solving it x=9;−12
Since side cannot be negative, AB =x=9cm
AC =x+3=12cm
Since the third side BC is the hypotenuse , BC2=92+122=225
Hence, BC =15cm
Perimeter of the triangle = Sum of all sides =15+9+12=36cm