The image below shows how the diagram should look. We are solving from how far the wall is from the ladder and we are representing it as x.
Based on the type of triangle below we are going to use Trigonometry ratios.
We are going to use the Sine ratio, which is opposite over hypotenuse.
Let opposite be x, hypotenuse be 30 and theta (angle) be 48 deg.
Sine 48 = x/30
Make x the subject
x = 30 Sine 48
Just go ahead and lunch this in a calculator.
x = 22.3 ft
Therefore the distance of the wall from the base of the ladder is 22.3 ft