We use the normalization condition for a PDF:
∫−∞∞f(x)dx=1
∫03(ax2+b1)dx=1
[3ax3+bx]03=1
3a27+b3=1
a9+b3=1...(1)
Using the given condition P(X≤2)=0.31481:
∫02(ax2+b1)dx=0.31481
[3ax3+bx]02=0.31481
3a8+b2=0.31481...(2)
Solving equations (1) and (2) simultaneously using GDC:
a=27 and b=12