Stuck on integration question

(a) Integrate $y(x)$ with respect to $x$ and set this equal to 4. Solve for $b$.

(b) Write an equation of the line passing through point $A$. Set up an integral from $0$ to $A$ under that line and from $A$ to 2 under the given curve. Set this equal to the area above the line (and under the curve; another integral)