The problem and answer are from a book.
Is there a $\triangle ABC$ such that the altitude from $A$, the bisector of $\angle BAC$ and the median from $A$ divide $\angle BAC$ into four equal parts?
The answer is: $ABC$ is a right triangle with $\angle A=90^\circ$ and $\angle C=22.5^\circ$.
I don't know how I should start to solve this problem.

$A$ divide the angle in
Well the angle bisector cuts $\angle BAC$ into two equal parts, so the median and the altitude must each cut those two angles into equal parts. If we label point where the altitude intersects $BC$ as $J$, the point where the angle bisector as $K$, and the median as $M$, we know that $K$ is colinearly between $J$ and $M$. As it is arbitrary which endpoint is $B$ and which is $C$ we can assume that points lie in order as $B,J,K,M$
So we have a figure a big triangle $\triangle ABC$ divided into four smaller triangles.
$\angle BAJ \cong \angle JAK \cong \angle KAM \cong \angle MAC$.
$\angle BJA \cong \angle KJA$ are both right angles.
So $\triangle BJA \cong \triangle KJA$.
If we let $m\angle BAJ = m\angle JAK = m\angle KAM = m \angle MAC= X$ then we can conclude:
$m\angle ABJ = 90 -X$ and $m\angle BCA = 180-(90-X)-4x = 90-3X$.
Now if we look at the line $BC$ and use trig identities we know.
$\frac {BJ}{AJ} = \tan X$.
$\frac {KJ}{AJ} = \tan X$. (And $BJ=JK$)$
$\frac {MJ}{AJ} = \tan 2X$.
And $\frac {CJ}{AJ} = \tan 3X$.
And heres the lynchpin: $M$ is the midpoint of $BC$ so $MC = MB$.
Now $MC = CJ - MJ = AJ(\tan 3X - \tan 2X)$ and $MB = BJ + MJ = AJ(\tan X + \tan 2X)$.
So we have $\tan 3X - \tan 2X = \tan X + \tan 2X$