If trying to do an If statment that combines two things.

In cell F25 I have an actual result, in cell D25 I have a goal, if the result is greater than the goal which is 1, the result is zero, but if it equals 1(the value of cell D25) then the desired output is cell B25. I also have a maximum goal of zero in E25 and if cell F25 = E25 the desired output should be B25*B20.

I know it has to be a combination of If/And statments, just having trouble coming up with the formula.

Any suggestions?