if the height is 5, that would be multiplied by 2 because there are two identical sides. From the product, 10, you would need to get to 30, so you add 20. that means the other two identical sides are 10cm. 10x5 (length x width) is equal to 50.
8x+12=p so you would take away 12 from p making the equation 8x=p-12 and then divide that by 8 so the equation is x= p-12/8 ( x equals p minus 12 over 8)