In any right triangle with legs parallel to the axes, one median to the midpoint of a leg has slope $4$ times that of the other. This can easily be shown with coordinates: any triangle of this sort may be labelled with right angle at $P(a,b)$, other vertices $Q(a,b+2c)$ and $R(a-2d,b)$, and thus midpoints $(a,b+c)$ and $(a-d,b)$, so that the slopes are $\frac{c}{2d}$ and $\frac{2c}{d} = 4(\frac{c}{2d})$, thus showing that one is $4$ times the other as required.
Thus in our problem, $m$ is either $3 \times 4 = 12$ or $3 \div 4 = \frac{3}{4}$. In fact, both are possible, and each for infinitely many triangles. We shall show this for $m=12$, and the argument is analogous for $m=\frac{3}{4}$. Take any right triangle with legs parallel to the axes and a hypotenuse with slope $12 \div 2 = 6$, e.g. the triangle with vertices $(0,0)$, $(1,0)$, and $(1,6)$. Then quick calculations show that the medians to the legs have slopes $12$ and $3$. Now translate the triangle (without rotating it) so that its medians intersect at the point where the lines $y=12x+2$ and $y=3x+1$ intersect. This forces the medians to lie on these lines (since their slopes are determined, and now we force them to go through a particular point; a slope and a point uniquely determine a line). Finally, for any central dilation of this triangle (a larger or smaller triangle with the same centroid and sides parallel to this one's sides), the medians will still lie on these lines, showing the "infinitely many" part of the result.
Hence, to sum up, $m$ can in fact be both $12$ or $\frac{3}{4}$, which is exactly $2$ values.
It is desired to construct a right triangle in the coordinate plane so that its legs are parallel to the $x$ and $y$ axes and so that the medians to the midpoints of the legs lie on the lines $y = 3x + 1$ and $y = mx + 2$. The number of different constants $m$ for which such a triangle exists is
$\textbf{(A)}\ 0\qquad \textbf{(B)}\ 1\qquad \textbf{(C)}\ 2\qquad \textbf{(D)}\ 3\qquad \textbf{(E)}\ \text{more than 3}$
