I need your help with a question on triangles. It is from the entrance exam of an institute in India for students in 10th grade.
In the given triangle ABC, if
DP, MQ AR and ES are perpendiculars to BC such that DP = 6 cm, MQ = 4 cm and ES = 8 cm
Then find AR.
The image of the figure
The image of the original question with options

MY ATTEMPT:
I tried to use Pythagoras theorem and tried substituting Pythagorean triplets to find the base.
Then I also tried similarity of triangles △DPC & △MQC and △ESB &△MQB to find the base BC.
I even tried to join AM and then extend it to intersect BC at F so as to use the Menelaus theorem and Ceva theorem. However, that didn't work for me too.
Any help would mean a lot to me.

I am going to solve using a combination of Euclidean Geometry and Analytic Geometry. Let $Q = (0,0)$ and let $B = (x_1, 0), P=(x_2,0), S = (x_3, 0), C = (x_4, 0)$ then by similar triangles
$ \dfrac{x_4}{ x_4 - x_2 } = \dfrac{2}{3} \tag{1}$
$ \dfrac{ -x_1}{x_3 - x_1} = \dfrac{1}{2} \tag{2}$
Now, let vertex $A = (x, y)$ , then again by similar triangles,
$ \dfrac{x_4 - x_3 }{x_4 - x} = \dfrac{8}{y} \tag{3}$
$ \dfrac{x_2 - x_1}{x - x_1} = \dfrac{6}{y} \tag{4}$
Taking the reciprocal of the last two equations, and re-arranging,
$ y = \dfrac{8 (x_4 - x)}{x_4 - x_3} = \dfrac{6(x - x_1)}{x_2 - x_1} \tag{5} $
Now looking back at the first two equations, we have
$ 3 x_4 = 2 x_4 - 2 x_2 \tag{6}$
So $x_4 = -2 x_2 \tag{7}$
And we also have
$ - 2 x_1 = x_3 - x_1\tag{8} $
So $ x_1 = - x_3 \tag{9}$
Substituting $(7)$ and $(9)$ into $(5)$, and writing $x_3 $ and $x_4$ in terms of $x_1 $ and $x_2$, gives us
$ y = \dfrac{ 8 (- 2 x_2 - x )}{- 2 x_2 + x_1} = \dfrac{ 6 (x - x_1)}{ x_2 - x_1} \tag{10}$
Solving for $x$ from the right most equation,
$$ 4 (-2 x_2 - x) (x_2 - x_1) = 3 (x - x_1) ( -2 x_2 + x_1) $$
Hence,
$$ x \left( 4 (x_1 - x_2) - 3 (-2 x_2 + x_1) \right) = 8 x_2 (x_2 - x_1) - 3 x_1 (-2 x_2 + x_1) $$
That is,
$$ x \left( x_1 + 2 x_2 \right) = 8 x_2^2 - 8 x_1 x_2 + 6 x_1 x_2 - 3 x_1^2 $$
$$ x \left( x_1 + 2 x_2 \right) = - 3 x_1^2 - 2 x_1 x_2 + 8 x_2^2 = (4x_2 - 3x_1) (2 x_2 + x_1)$$
Therefore,
$$ x = 4 x_2 - 3 x_1 $$
Substitute this in $(10)$
$$ y = 6\dfrac{ x - x_1}{x_2 - x_1} = 6 \left(\dfrac{ 4 (x_2 - x_1) }{x_2 - x_1} \right)= 24 $$
Therefore, $AR = 24$