80% is what number is 40?

Is this answer correct 50

yes.

80%X = 40
0.8X = 40
X = 40/0.80 = 50