Here is the mathematics part (there was none), if there was any math related answer here is how it should look