Quoted By:
This is actually quite hard
I figured a way to do it without calculus and using an integral
If you partition the spaces into full rectangle, half triangles, and so, can make it a linear system of equations where one of your variables will represent the red portion.