The answer would look something like this:
There could also have a simplified version.
I hope this helps.
7.4m questions
9.9m answers