The use of Riemann problems in solving a class of transcendental equations