You problem is you don't have any problem. You have a bunch of formulas for the perimeter and area of some shapes.
As for using the formulas, usually you're given all but one of the variables and you can solve for the remaining one.
Notice how the triangle result doesn't have area as a function of a, b and c. That's called Heron's formula and is usually not taught to secondary school students. I don't like to teach it either because Archimedes' Theorem is so much better:
The sides a,b,c and area S of a triangle satisfy
![16S^2 = (a+b+c)(-a+b+c)(a-b+c)(a+b-c) = 4a^2b^2-(c^2-a^2-b^2)^2 = (a^2+b^2+c^2)^2 - 2(a^4+b^4+c^4)](https://img.qammunity.org/2019/formulas/mathematics/middle-school/l59eosutwy81ydea98wecz9ottw0lbdmqf.png)