Got two questions here that are really puzzling me.

1. The perpendicular height of a triangle is 3cm less than the lenght of its base. The area of the triangle is 27cm (squared). Form a quadratic equation to represent the information and solve to find the dimensions of the triangle.

next one is

2. The area of a rectangle is 21 cm (squared) and its perimeter is 20 cm.

The length of the rectangle is x cm and its width is y cm.

aWrite equations for the area and perimeter in terms of X and Y

bUse substitution in order to form a quadratic in one variable

cSolve to find the midensions of the rectangle.

Ive attempted both questions but am unable to come to the correct answer

If someone could please answer these questions aswell as show me how to do it, it would save me alot of headaches

Thank you