5:1 is the ratio of raisin cookies to oatmeal cookies, and 40 raisin cookies were sold. Meaning, 40:?.
To find the number of oatmeal cookies you divide 40 by 5, which gets 8. This means that the original ratio is multiplied by 8 to get the current ratio for the amount if cookies. 5(8) : 1(8) = 40:8. There are 40 raisin cookies and 8 oatmeal cookies. 40+8=48. There were 48 cookies sold in total.
If b is the base then the height h=b+6. As we have S=bh/2 then 36=b(b+6)/2; b²+6b-72=0; D/4=3²+72=81 b₁=-3-9=-12 b₂=-3+9=6. The base is always positive so b=6, h=6+6=12. Answer: base=6 ft, height=12 ft.