Step 1 — write down the known values.
Let the number of saplings in 50–60 be f2.
l=40,h=10,f1=18,f0=12,Mode=44
Step 2 — substitute in the mode formula.
44=40+(36−12−f218−12)×10
4=24−f260
4(24−f2)=60⇒96−4f2=60⇒f2=9
There are 9 saplings in the class 50–60 cm.
Check: 40+36−12−96×10=40+156×10=44 ✓. Also 9<18, so 40–50 is still the modal class.