I'm plotting the graph below using the following code. The problem is that I need to make the area between the green and red curve shaded, but I can't make this work using Filling. I'd appreciate any ideas. (Have already tried the solution in here, which fails strangely because it only plots the left half of the red line)
x = d;
y = d^2;
z = Max[0, 2 (d - 1/2)];
p1 = Plot[x, {d, 0, 1}, PlotLegends -> Placed[LineLegend[{
RGBColor[0.368417, 0.506779,
0.709798]}, {"Assignment by lottery"}], {0.282, 0.8}],
PlotStyle -> RGBColor[0.368417, 0.506779, 0.709798]];
p2 = Plot[y, {d, 0, 1}, PlotLegends -> Placed[LineLegend[{
RGBColor[0.560181, 0.691569,
0.194885]}, {"Complete equality"}], {0.25, 0.9}],
PlotStyle -> RGBColor[0.560181, 0.691569, 0.194885]];
p3 = Plot[z, {d, 0, 1}, PlotLegends -> Placed[LineLegend[{
RGBColor[0.922526, 0.385626, 0.209179]}, {"FCFS"}], {0.145, 0.7}],
PlotStyle -> RGBColor[0.922526, 0.385626, 0.209179]];
Show[{p2, p1, p3}, AxesLabel -> {F[t], Subscript[L, P][F[t]]},
LabelStyle -> Directive[{FontColor -> Black}, {FontSize -> 16}]]
Filling->{2->{3}}
$\endgroup$Plot
? (I'd try it myself, but without the code here as text, I can't try it out and modify it without manually retyping everything...that's why it's always useful to post code, not images of code! :) ) $\endgroup$