A rough explanation of my attempts:
I set the coordinate axis in a way that x is the horizontal base and y is perpendicular. But I guess it is a 3d problem, so I struggle finding the right position of the coordinate system.
Then, my next step was applying 2nd NL for every axis. So far I have...