By spelling each name backward, we get the profession.
So, RAB spelled backward is BAR, and as we are told Rab became a lawyer (entered the Bar).
YMRA spelled backward is ARMY, hence the fact that Ymra became a soldier.
Thus, NAVY is the backward spelling for YVAN. The third son’s name was Yvan, who became a sailor.