W2 Derivation of DJ/dw and DJ /Db

I need to understand how did we find DJ/DW and DJ/Db while finding the gradient ?

We find these by Backpropagation. Please check this post and yet another one for more explanation.